2.17.2: 2011-06-17

net.sf.basedb.clients.jobagent.handlers
Class StartRequestHandler

java.lang.Object
  extended by net.sf.basedb.clients.jobagent.handlers.StartRequestHandler
All Implemented Interfaces:
RequestHandler

public class StartRequestHandler
extends Object
implements RequestHandler

This is a request handler for the start command. It starts the job agent by calling the Agent.start() method.

Version:
2.0
Author:
nicklas
Last modified
$Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  Agent agent
           
 
Constructor Summary
StartRequestHandler(Agent agent)
           
 
Method Summary
 String handleCmd(Socket incoming, String cmd)
          Handle a command that was sent by an incoming request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

private final Agent agent
Constructor Detail

StartRequestHandler

public StartRequestHandler(Agent agent)
Method Detail

handleCmd

public String handleCmd(Socket incoming,
                        String cmd)
Description copied from interface: RequestHandler
Handle a command that was sent by an incoming request.

Specified by:
handleCmd in interface RequestHandler
Parameters:
incoming - The socket that is handling the communication with the remote client
cmd - The command
Returns:
The answer

2.17.2: 2011-06-17