public class SignalRequestHandler extends Object implements RequestHandler
signal
commands.
It will send signal to running jobs.Modifier and Type | Field and Description |
---|---|
private Agent |
agent |
private AgentSignalReceiver |
signalReceiver |
Constructor and Description |
---|
SignalRequestHandler(Agent agent) |
Modifier and Type | Method and Description |
---|---|
String |
handleCmd(Socket incoming,
String cmd)
Handle a command that was sent by an incoming request.
|
private final Agent agent
private final AgentSignalReceiver signalReceiver
public SignalRequestHandler(Agent agent)
public String handleCmd(Socket incoming, String cmd)
RequestHandler
handleCmd
in interface RequestHandler
incoming
- The socket that is handling the communication with the
remote clientcmd
- The command