net.sf.basedb.clients.jobagent.handlers
Class StopRequestHandler
java.lang.Object
net.sf.basedb.clients.jobagent.handlers.StopRequestHandler
- All Implemented Interfaces:
- RequestHandler
public class StopRequestHandler
- extends Object
- implements RequestHandler
This is a request handler for the stop
command. It shuts down the
job agent by calling the Agent.stop()
method.
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
private final Agent agent
StopRequestHandler
public StopRequestHandler(Agent agent)
- Create a new stop request handler.
- Parameters:
agent
- The agent
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 clientcmd
- The command
- Returns:
- The answer