public abstract class JnlpAgentReceiver extends Object implements ExtensionPoint
JnlpSlaveAgentProtocol2
.
This is useful to establish the communication with other JVMs and use them
for different purposes outside Slave
s.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
JnlpAgentReceiver() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<JnlpAgentReceiver> |
all() |
abstract boolean |
handle(String name,
JnlpSlaveHandshake handshake)
Called after the client has connected.
|
public abstract boolean handle(String name, JnlpSlaveHandshake handshake) throws IOException, InterruptedException
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 truename
- 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.Exception
- Any exception thrown from this method will fatally terminate the connection.IOException
InterruptedException
public static ExtensionList<JnlpAgentReceiver> all()
Copyright © 2016. All rights reserved.