Class SignalRequestHandler
- java.lang.Object
-
- net.sf.basedb.clients.jobagent.handlers.SignalRequestHandler
-
- All Implemented Interfaces:
RequestHandler
public class SignalRequestHandler extends Object implements RequestHandler
This is a request handler for thesignal
commands. It will send signal to running jobs.- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
-
Field Summary
Fields Modifier and Type Field Description private Agent
agent
private AgentSignalReceiver
signalReceiver
-
Constructor Summary
Constructors Constructor Description SignalRequestHandler(Agent agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
handleCmd(Socket incoming, String cmd)
Handle a command that was sent by an incoming request.
-
-
-
Field Detail
-
agent
private final Agent agent
-
signalReceiver
private final AgentSignalReceiver signalReceiver
-
-
Constructor Detail
-
SignalRequestHandler
public SignalRequestHandler(Agent agent)
-
-
Method Detail
-
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 interfaceRequestHandler
- Parameters:
incoming
- The socket that is handling the communication with the remote clientcmd
- The command- Returns:
- The answer
-
-