Class PingRequestHandler

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

public class PingRequestHandler extends Object implements RequestHandler
This is a request handler for the ping command. It simply returns OK if the command is ping. Otherwise it returns FAILED Unhandled command: <cmd>.
Version:
2.0
Author:
nicklas
Last modified
$Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
  • Constructor Details

    • PingRequestHandler

      public PingRequestHandler(Agent agent)
      Create a new handler for the ping command.
      Parameters:
      agent - The 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:
      OK if cmd=ping