public abstract class JnlpAgentReceiver extends org.jenkinsci.remoting.engine.JnlpConnectionStateListener implements ExtensionPoint
JnlpSlaveAgentProtocol4
or WebSocketAgents
.
This is useful to establish the communication with other JVMs and use them
for different purposes outside Slave
s.
exists(String)
method is invoked for an agent, the owns(String)
method is called on all the extension points: if no owner is found an exception is thrown.JnlpConnectionState
lifecycle methods are invoked for all registered JnlpConnectionStateListener
until the one which changes the state of JnlpConnectionState
by setting an approval or rejected state is found.
When found, that listener will be set as the owner of the incoming connection event. JnlpAgentReceiver
implementation owner for that connection event.ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static org.jenkinsci.remoting.engine.JnlpClientDatabase |
DATABASE |
static HMACConfidentialKey |
SLAVE_SECRET
This secret value is used as a seed for agents.
|
Constructor and Description |
---|
JnlpAgentReceiver() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<JnlpAgentReceiver> |
all() |
static boolean |
exists(String clientName) |
static String |
generateCookie() |
protected abstract boolean |
owns(String clientName) |
public static final HMACConfidentialKey SLAVE_SECRET
public static final org.jenkinsci.remoting.engine.JnlpClientDatabase DATABASE
public static ExtensionList<JnlpAgentReceiver> all()
public static boolean exists(String clientName)
protected abstract boolean owns(String clientName)
public static String generateCookie()
Copyright © 2004–2021. All rights reserved.