public class StopRequestHandler extends java.lang.Object implements RequestHandler
stop
command. It shuts down the
job agent by calling the Agent.stop()
method.Constructor and Description |
---|
StopRequestHandler(Agent agent)
Create a new stop request handler.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
handleCmd(java.net.Socket incoming,
java.lang.String cmd)
Handle a command that was sent by an incoming request.
|
private final Agent agent
public StopRequestHandler(Agent agent)
agent
- The agentpublic java.lang.String handleCmd(java.net.Socket incoming, java.lang.String cmd)
RequestHandler
handleCmd
in interface RequestHandler
incoming
- The socket that is handling the communication with the
remote clientcmd
- The command