public class TestChannel extends AbstractAlarmChannel
log| Constructor and Description |
|---|
TestChannel() |
| 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 |
setAlarmSource(String value)
Sets a value that will be matched against the sources received in
createSendTask(String, String);
by default it's null so that all alarms are printed out, but you can set a value here to print only
the messages from the specified source. |
getMinResendInterval, send, setAllowSynchronousSend, setMinResendInterval, shutdownpublic void setAlarmSource(String value)
createSendTask(String, String);
by default it's null so that all alarms are printed out, but you can set a value here to print only
the messages from the specified source.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