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.
TcpSlaveAgentListener
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
AgentProtocol() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<AgentProtocol> |
all()
Returns all the registered
AgentProtocol s. |
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
IOException
InterruptedException
public static ExtensionList<AgentProtocol> all()
AgentProtocol
s.public static AgentProtocol of(String protocolName)
Copyright © 2015. All rights reserved.