hudson.cli
Class CliProtocol

java.lang.Object
  extended by jenkins.AgentProtocol
      extended by 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

Nested Class Summary
protected static class CliProtocol.Handler
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
CliProtocol()
           
 
Method Summary
 String getName()
          Protocol name.
 void handle(Socket socket)
          Called by the connection handling thread to execute the protocol.
 
Methods inherited from class jenkins.AgentProtocol
all, of
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CliProtocol

public CliProtocol()
Method Detail

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.