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 theinfo
andstatus
commands. It creates aJobAgentInfo
object and uses it'stoString()
method to return the answer.- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
-
-
Field Summary
Fields Modifier and Type Field Description private Agent
agent
private static org.slf4j.Logger
log
private static boolean
useJavaSysMon
-
Constructor Summary
Constructors Constructor Description InfoRequestHandler(Agent agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
handleCmd(Socket incoming, String cmd)
Handle a command that was sent by an incoming request.
-
-
-
Field Detail
-
useJavaSysMon
private static boolean useJavaSysMon
-
log
private static final org.slf4j.Logger log
-
agent
private final Agent agent
-
-
Constructor Detail
-
InfoRequestHandler
public InfoRequestHandler(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 interfaceRequestHandler
- Parameters:
incoming
- The socket that is handling the communication with the remote clientcmd
- The command- Returns:
- The answer
-
-