Package jenkins
Class AgentProtocol
java.lang.Object
jenkins.AgentProtocol
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
JnlpSlaveAgentProtocol4,TcpSlaveAgentListener.PingAgentProtocol
Pluggable Jenkins TCP agent protocol handler called from
TcpSlaveAgentListener.
To register your extension, put Extension annotation on your subtype.
Implementations of this extension point is singleton, and its handle(Socket) method
gets invoked concurrently whenever a new connection comes in.
- Since:
- 1.467
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<AgentProtocol> all()Returns all the registeredAgentProtocols.Deprecated.no longer usedabstract StringgetName()Protocol name.abstract voidCalled by the connection handling thread to execute the protocol.booleanDeprecated.no longer usedbooleanisOptIn()Deprecated.no longer usedbooleanDeprecated.no longer usedstatic AgentProtocol
-
Constructor Details
-
AgentProtocol
public AgentProtocol()
-
-
Method Details
-
isOptIn
Deprecated.no longer used -
isRequired
Deprecated.no longer used -
isDeprecated
Deprecated.no longer used -
getName
Protocol name. This is a short string that consists of printable ASCII chars. Sent by the client to select the protocol.- Returns:
- null to be disabled
-
getDisplayName
Deprecated.no longer used -
handle
Called by the connection handling thread to execute the protocol.- Throws:
IOExceptionInterruptedException
-
all
Returns all the registeredAgentProtocols. -
of
-