2.17.2: 2011-06-17

net.sf.basedb.util.jobagent
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.JobAgentServerConnection(int, RequestHandler, Logger)
Last modified
$Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Method Summary
 String handleCmd(Socket socket, String cmd)
          Handle a command that was sent by an incoming request.
 

Method Detail

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

2.17.2: 2011-06-17