hudson.cli
Class CliProtocol
java.lang.Object
jenkins.AgentProtocol
hudson.cli.CliProtocol
- All Implemented Interfaces:
- ExtensionPoint
- Direct Known Subclasses:
- CliProtocol2
@Extension
public class CliProtocol
- extends AgentProtocol
AgentProtocol
that accepts connection from CLI clients.
- Since:
- 1.467
- Author:
- Kohsuke Kawaguchi
Method Summary |
String |
getName()
Protocol name. |
void |
handle(Socket socket)
Called by the connection handling thread to execute the protocol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CliProtocol
public CliProtocol()
getName
public String getName()
- Description copied from class:
AgentProtocol
- Protocol name.
This is a short string that consists of printable ASCII chars. Sent by the client to select the protocol.
- Specified by:
getName
in class AgentProtocol
handle
public void handle(Socket socket)
throws IOException,
InterruptedException
- Description copied from class:
AgentProtocol
- Called by the connection handling thread to execute the protocol.
- Specified by:
handle
in class AgentProtocol
- Throws:
IOException
InterruptedException
Copyright © 2004-2013. All Rights Reserved.