public class InfoRequestHandler extends Object implements RequestHandler
info
and status
commands. It creates a JobAgentInfo
object and uses it's
toString()
method to return the answer.Modifier and Type | Field and Description |
---|---|
private Agent |
agent |
private static org.slf4j.Logger |
log |
private static boolean |
useJavaSysMon |
Constructor and Description |
---|
InfoRequestHandler(Agent agent) |
Modifier and Type | Method and Description |
---|---|
String |
handleCmd(Socket incoming,
String cmd)
Handle a command that was sent by an incoming request.
|
private static boolean useJavaSysMon
private static final org.slf4j.Logger log
private final Agent agent
public InfoRequestHandler(Agent agent)
public String handleCmd(Socket incoming, String cmd)
RequestHandler
handleCmd
in interface RequestHandler
incoming
- The socket that is handling the communication with the
remote clientcmd
- The command