Package jenkins.slaves
Class DefaultJnlpSlaveReceiver
- java.lang.Object
-
- org.jenkinsci.remoting.engine.JnlpConnectionStateListener
-
- jenkins.slaves.JnlpAgentReceiver
-
- jenkins.slaves.DefaultJnlpSlaveReceiver
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class DefaultJnlpSlaveReceiver extends JnlpAgentReceiver
Match the name against the agent name and route the incoming agent asSlave.- Since:
- 1.561, 1.614 handle() returns true on handshake error as it required in
JnlpAgentReceiver. - Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static booleandisableStrictVerificationDisables strict verification of connections.-
Fields inherited from class jenkins.slaves.JnlpAgentReceiver
DATABASE, SLAVE_SECRET
-
-
Constructor Summary
Constructors Constructor Description DefaultJnlpSlaveReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterChannel(org.jenkinsci.remoting.engine.JnlpConnectionState event)voidafterProperties(org.jenkinsci.remoting.engine.JnlpConnectionState event)voidbeforeChannel(org.jenkinsci.remoting.engine.JnlpConnectionState event)voidchannelClosed(org.jenkinsci.remoting.engine.JnlpConnectionState event)booleanowns(String clientName)-
Methods inherited from class jenkins.slaves.JnlpAgentReceiver
all, exists, generateCookie
-
-
-
-
Field Detail
-
disableStrictVerification
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean disableStrictVerification
Disables strict verification of connections. Turn this on if you have plugins that incorrectly extendComputerLauncherwhen then should have extendedDelegatingComputerLauncher- Since:
- 2.28
-
-
Method Detail
-
owns
public boolean owns(String clientName)
- Specified by:
ownsin classJnlpAgentReceiver
-
afterProperties
public void afterProperties(@NonNull org.jenkinsci.remoting.engine.JnlpConnectionState event)- Specified by:
afterPropertiesin classorg.jenkinsci.remoting.engine.JnlpConnectionStateListener
-
beforeChannel
public void beforeChannel(@NonNull org.jenkinsci.remoting.engine.JnlpConnectionState event)- Overrides:
beforeChannelin classorg.jenkinsci.remoting.engine.JnlpConnectionStateListener
-
afterChannel
public void afterChannel(@NonNull org.jenkinsci.remoting.engine.JnlpConnectionState event)- Specified by:
afterChannelin classorg.jenkinsci.remoting.engine.JnlpConnectionStateListener
-
channelClosed
public void channelClosed(@NonNull org.jenkinsci.remoting.engine.JnlpConnectionState event)- Overrides:
channelClosedin classorg.jenkinsci.remoting.engine.JnlpConnectionStateListener
-
-