public class StopRequestHandler extends Object implements RequestHandler
stop
command. It shuts down the
job agent by calling the Agent.stop()
method.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