@Extension public class JnlpSlaveAgentProtocol2 extends JnlpSlaveAgentProtocol
JnlpSlaveAgentProtocol Version 2.
This protocol extends the version 1 protocol by adding a per-client cookie, so that we can detect a reconnection from the slave and take appropriate action, when the connection disappeared without the master noticing.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JnlpSlaveAgentProtocol2.Handler2 |
JnlpSlaveAgentProtocol.HandlerExtensionPoint.LegacyInstancesAreScopedToHudsonSLAVE_SECRET| Constructor and Description |
|---|
JnlpSlaveAgentProtocol2() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Protocol name.
|
void |
handle(Socket socket)
Called by the connection handling thread to execute the protocol.
|
all, ofpublic String getName()
AgentProtocolgetName in class JnlpSlaveAgentProtocolpublic void handle(Socket socket) throws IOException, InterruptedException
AgentProtocolhandle in class JnlpSlaveAgentProtocolIOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.