public class CommandLineChannel extends AbstractAlarmChannel
log| Constructor and Description |
|---|
CommandLineChannel() |
| Modifier and Type | Method and Description |
|---|---|
protected Runnable |
createSendTask(String msg,
String source)
Subclasses need to create and return a new Runnable in each call to this method.
|
protected boolean |
hasSource(String alarmSource)
This method is used to determine if a certain alarm channel has a special condition for the specified
alarmSource or not.
|
void |
setCommand(String value)
Sets the command to execute, as a single statement to be execute.
|
void |
setCommandsBySource(Map<String,String> value)
Sets a map with different commands to be executed depending on the alarm source.
|
void |
setCommandsWithArgsBySource(Map<String,String[]> value)
Sets a map with different commands to be executed depending on the alarm source.
|
void |
setCommandWithArgs(List<String> value)
Sets the command to execute, with each argument as a separate element.
|
getMinResendInterval, send, setAllowSynchronousSend, setMinResendInterval, shutdownpublic void setCommand(String value)
public void setCommandWithArgs(List<String> value)
public void setCommandsWithArgsBySource(Map<String,String[]> value)
public void setCommandsBySource(Map<String,String> value)
protected Runnable createSendTask(String msg, String source)
AbstractAlarmChannelcreateSendTask in class AbstractAlarmChannelmsg - The message to be sent.source - The alarm source. A channel can have different recipient lists depending on the alarm source.protected boolean hasSource(String alarmSource)
AbstractAlarmChannelhasSource in class AbstractAlarmChannel