Class PauseRequestHandler

java.lang.Object
net.sf.basedb.clients.jobagent.handlers.PauseRequestHandler
All Implemented Interfaces:
RequestHandler

public class PauseRequestHandler extends Object implements RequestHandler
This is a request handler for the pause command. It pauses the job agent by calling the Agent.pause() method.
Version:
2.0
Author:
nicklas
Last modified
$Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
  • Field Details

    • agent

      private final Agent agent
  • Constructor Details

    • PauseRequestHandler

      public PauseRequestHandler(Agent agent)
  • Method Details

    • 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 interface RequestHandler
      Parameters:
      incoming - The socket that is handling the communication with the remote client
      cmd - The command
      Returns:
      The answer