@Extension @Symbol(value="ping") public static class TcpSlaveAgentListener.PingAgentProtocol extends AgentProtocol
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
PingAgentProtocol() |
Modifier and Type | Method and Description |
---|---|
boolean |
connect(Socket socket) |
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 |
isRequired()
Allow essential
AgentProtocol implementations (basically TcpSlaveAgentListener.PingAgentProtocol )
to be always enabled. |
all, isDeprecated, isOptIn, of
public boolean isRequired()
AgentProtocol
AgentProtocol
implementations (basically TcpSlaveAgentListener.PingAgentProtocol
)
to be always enabled.isRequired
in class AgentProtocol
true
if the protocol can never be disabled.public String getName()
AgentProtocol
getName
in class AgentProtocol
public String getDisplayName()
AgentProtocol
getDisplayName
in class AgentProtocol
public void handle(Socket socket) throws IOException, InterruptedException
AgentProtocol
handle
in class AgentProtocol
IOException
InterruptedException
public boolean connect(Socket socket) throws IOException
IOException
Copyright © 2004–2021. All rights reserved.