@Deprecated @Extension @Symbol(value="jnlp3") public class JnlpSlaveAgentProtocol3 extends AgentProtocol
@see JnlpProtocol3Handler
for more details.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
JnlpSlaveAgentProtocol3()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Deprecated.
Returns the human readable protocol display name.
|
String |
getName()
Deprecated.
Protocol name.
|
void |
handle(Socket socket)
Deprecated.
Called by the connection handling thread to execute the protocol.
|
boolean |
isDeprecated()
Deprecated.
Checks if the protocol is deprecated.
|
boolean |
isOptIn()
Deprecated.
Allow experimental
AgentProtocol implementations to declare being opt-in. |
void |
setHub(NioChannelSelector hub)
Deprecated.
|
all, isRequired, of
@Inject public void setHub(NioChannelSelector hub)
public boolean isOptIn()
AgentProtocol
AgentProtocol
implementations to declare being opt-in.
Note that Jenkins.setAgentProtocols(Set)
only records the protocols where the admin has made a
conscious decision thus:
opt-in -> opt-out -> opt-in
.
Implementations should never flip-flop: opt-in -> opt-out -> opt-in -> opt-out
as that will basically
clear any preference that an admin has set. This latter restriction should be ok as we only ever will be
adding new protocols and retiring old ones.isOptIn
in class AgentProtocol
true
if the protocol requires explicit opt-in.Jenkins.setAgentProtocols(Set)
public String getName()
AgentProtocol
getName
in class AgentProtocol
public String getDisplayName()
AgentProtocol
getDisplayName
in class AgentProtocol
public boolean isDeprecated()
AgentProtocol
isDeprecated
in class AgentProtocol
public void handle(Socket socket) throws IOException, InterruptedException
AgentProtocol
handle
in class AgentProtocol
IOException
InterruptedException
Copyright © 2004–2019. All rights reserved.