@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.
|
all
public boolean handle(String nodeName, JnlpSlaveHandshake handshake) throws IOException, InterruptedException
JnlpAgentReceiver
The 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 JnlpAgentReceiver
nodeName
- 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.JnlpAgentReceiver
s will be called to see if they
take this connection.IOException
InterruptedException
Copyright © 2018. All rights reserved.