net.sf.basedb.clients.jobagent.handlers
Class InfoRequestHandler
java.lang.Object
net.sf.basedb.clients.jobagent.handlers.InfoRequestHandler
- All Implemented Interfaces:
- RequestHandler
public class InfoRequestHandler
- extends Object
- implements RequestHandler
This is a request handler for the info
and status
commands. It creates a JobAgentInfo
object and uses it's
toString()
method to return the answer.
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2010-05-26 10:24:12 +0200 (Wed, 26 May 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useJavaSysMon
private static boolean useJavaSysMon
log
private static final Logger log
agent
private final Agent agent
InfoRequestHandler
public InfoRequestHandler(Agent 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