@Deprecated @Extension @Symbol(value="cli") public class CliProtocol extends AgentProtocol
AgentProtocol
that accepts connection from CLI clients.Modifier and Type | Class and Description |
---|---|
protected static class |
CliProtocol.Handler
Deprecated.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CliProtocol()
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 |
isOptIn()
Deprecated.
Allow experimental
AgentProtocol implementations to declare being opt-in. |
all, isRequired, of
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 getName()
AgentProtocol
getName
in class AgentProtocol
public String getDisplayName()
getDisplayName
in class AgentProtocol
public void handle(Socket socket) throws IOException, InterruptedException
AgentProtocol
handle
in class AgentProtocol
IOException
InterruptedException
Copyright © 2004–2017. All rights reserved.