public class StopRequestHandler extends 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 |
---|---|
String |
handleCmd(Socket incoming,
String cmd)
Handle a command that was sent by an incoming request.
|
private final Agent agent
public StopRequestHandler(Agent agent)
agent
- The agentpublic 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