Interface RequestHandler

All Known Subinterfaces:
CustomRequestHandler
All Known Implementing Classes:
AbstractCustomRequestHandler, DefaultRequestHandler, InfoRequestHandler, MasterSlotManager.RemoteSlotRequestHandler, MultiProtocolRequestHandler, PauseRequestHandler, PingRequestHandler, SignalRequestHandler, StartRequestHandler, StopRequestHandler

public interface RequestHandler
A request handler object takes care of an incoming request from a JobAgentServerConnection, processes it and returns an answer.
Version:
2.0
Author:
nicklas
See Also:
JobAgentServerConnection(int, RequestHandler, Logger)
Last modified
$Date: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
  • Method Summary

    Modifier and Type Method Description
    String handleCmd​(Socket socket, String cmd)
    Handle a command that was sent by an incoming request.
  • Method Details

    • handleCmd

      String handleCmd​(Socket socket, String cmd)
      Handle a command that was sent by an incoming request.
      Parameters:
      socket - The socket that is handling the communication with the remote client
      cmd - The command
      Returns:
      The answer