@Extension public class DefaultJnlpSlaveReceiver extends JnlpAgentReceiver
Slave.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
DefaultJnlpSlaveReceiver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(String nodeName,
JnlpSlaveHandshake handshake)
Called after the client has connected.
|
allpublic boolean handle(String nodeName, JnlpSlaveHandshake handshake) throws IOException, InterruptedException
JnlpAgentReceiverThe implementation must do the following in the order:
JnlpAgentReceiver have a chance to
take this connection.
JnlpSlaveHandshake.error(String) to refuse the client, and return true.
The connection will be shut down and the client will report this error to the user.
JnlpSlaveHandshake.success(Properties) to accept the client.
JnlpSlaveHandshake.createChannelBuilder(String)
and return truehandle in class JnlpAgentReceivernodeName - Name of the incoming JNLP agent. All JnlpAgentReceiver shares a single namespace
of names. The implementation needs to be able to tell which name belongs to them.handshake - Encapsulation of the interaction with the incoming JNLP agent.JnlpAgentReceivers will be called to see if they
take this connection.IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.