public abstract class AgentProtocol extends Object implements ExtensionPoint
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.
TcpSlaveAgentListenerExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
AgentProtocol() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<AgentProtocol> |
all()
Returns all the registered
AgentProtocols. |
abstract String |
getName()
Protocol name.
|
abstract void |
handle(Socket socket)
Called by the connection handling thread to execute the protocol.
|
static AgentProtocol |
of(String protocolName) |
public abstract String getName()
public abstract void handle(Socket socket) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static ExtensionList<AgentProtocol> all()
AgentProtocols.public static AgentProtocol of(String protocolName)
Copyright © 2019. All rights reserved.