@Extension @Symbol(value="jnlp4") public class JnlpSlaveAgentProtocol4 extends AgentProtocol
@see JnlpProtocol4Handler
for more details.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
JnlpSlaveAgentProtocol4()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns the human readable protocol display name.
|
String |
getName()
Protocol name.
|
void |
handle(Socket socket)
Called by the connection handling thread to execute the protocol.
|
boolean |
isOptIn()
Allow experimental
AgentProtocol implementations to declare being opt-in. |
void |
setHub(IOHubProvider hub)
Inject the
IOHubProvider |
all, isDeprecated, isRequired, of
public JnlpSlaveAgentProtocol4() throws KeyStoreException, KeyManagementException, IOException
KeyStoreException
- if things go wrong.KeyManagementException
- if things go wrong.IOException
- if things go wrong.@Inject public void setHub(IOHubProvider hub)
IOHubProvider
hub
- the hub provider.public boolean isOptIn()
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 getDisplayName()
getDisplayName
in class AgentProtocol
public String getName()
getName
in class AgentProtocol
public void handle(Socket socket) throws IOException, InterruptedException
handle
in class AgentProtocol
IOException
InterruptedException
Copyright © 2004–2019. All rights reserved.