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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<AgentProtocol>
all()
Returns all the registeredAgentProtocol
s.Deprecated.no longer usedabstract String
getName()
Protocol name.abstract void
Called by the connection handling thread to execute the protocol.boolean
Deprecated.no longer usedboolean
isOptIn()
Deprecated.no longer usedboolean
Deprecated.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:
IOException
InterruptedException
-
all
Returns all the registeredAgentProtocol
s. -
of
-