@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.Handler
ExtensionPoint.LegacyInstancesAreScopedToHudson
SLAVE_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, of
public String getName()
AgentProtocol
getName
in class JnlpSlaveAgentProtocol
public void handle(Socket socket) throws IOException, InterruptedException
AgentProtocol
handle
in class JnlpSlaveAgentProtocol
IOException
InterruptedException
Copyright © 2014. All rights reserved.