2.14.2: 2010-02-22

net.sf.basedb.util.jobagent
Interface RequestHandler

All Known Implementing Classes:
DefaultRequestHandler, InfoRequestHandler, 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.14.2: 2010-02-22