Package jenkins.slaves
Class JnlpAgentReceiver
java.lang.Object
org.jenkinsci.remoting.engine.JnlpConnectionStateListener
jenkins.slaves.JnlpAgentReceiver
- All Implemented Interfaces:
- ExtensionPoint
- Direct Known Subclasses:
- DefaultJnlpSlaveReceiver
public abstract class JnlpAgentReceiver
extends org.jenkinsci.remoting.engine.JnlpConnectionStateListener
implements ExtensionPoint
Receives incoming agents connecting through the likes of 
JnlpSlaveAgentProtocol4 or WebSocketAgents.
 
 This is useful to establish the communication with other JVMs and use them
 for different purposes outside Slaves.
 
-  When the exists(String)method is invoked for an agent, theowns(String)method is called on all the extension points: if no owner is found an exception is thrown.
-  If owner is found, then the JnlpConnectionStatelifecycle methods are invoked for all registeredJnlpConnectionStateListeneruntil the one which changes the state ofJnlpConnectionStateby setting an approval or rejected state is found. When found, that listener will be set as the owner of the incoming connection event.
-  Subsequent steps of the connection lifecycle are only called on the JnlpAgentReceiverimplementation owner for that connection event.
- Since:
- 1.561
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.jenkinsci.remoting.engine.JnlpClientDatabasestatic final HMACConfidentialKeyThis secret value is used as a seed for agents.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExtensionList<JnlpAgentReceiver> all()static booleanstatic Stringprotected abstract booleanMethods inherited from class org.jenkinsci.remoting.engine.JnlpConnectionStateListenerafterChannel, afterDisconnect, afterProperties, beforeChannel, beforeProperties, channelClosed
- 
Field Details- 
SLAVE_SECRETThis secret value is used as a seed for agents.
- 
DATABASEpublic static final org.jenkinsci.remoting.engine.JnlpClientDatabase DATABASE
 
- 
- 
Constructor Details- 
JnlpAgentReceiverpublic JnlpAgentReceiver()
 
- 
- 
Method Details- 
all
- 
exists
- 
owns
- 
generateCookie
 
-