public final class SOMAlerter extends Alerter.Abstract implements ServiceThread.Target
Implements an Alerter using Simple Messaging Objects as
transport.
Alerter.Abstract, Alerter.Factory, Alerter.Listener, Alerter.SharedContext| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TOPIC
Default alerter topic.
|
static String |
TOPIC_PROPERTIES
The topic properties.
|
| Constructor and Description |
|---|
SOMAlerter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSend(Alert alert)
Does send an alert.
|
protected boolean |
doSetUp()
Does set up the alerter.
|
protected void |
doStart()
Does start.
|
protected void |
doStop()
Does stop.
|
protected void |
doTearDown()
Does tear down what has been set up.
|
boolean |
isEmbedded()
Asks if this alerter is embedded.
|
boolean |
isRunning()
Asks if this alerter is running.
|
void |
run()
Runs.
|
protected Alerter.SharedContext |
sharedContext()
Returns the shared context.
|
addListener, getActiveInstance, getAlerterProperties, getConfig, getConfigProperties, getOwner, getService, getThisLogger, isShared, isStealth, notifyListeners, removeListener, send, setUp, start, stop, tearDownpublic static final String DEFAULT_TOPIC
public static final String TOPIC_PROPERTIES
public boolean isEmbedded()
isEmbedded in interface AlerterisEmbedded in class Alerter.Abstractpublic boolean isRunning()
public void run()
Similar to same in Runnable but may throw exceptions.
run in interface ServiceThread.Targetprotected void doSend(Alert alert) throws InterruptedException, ServiceNotAvailableException
doSend in class Alerter.Abstractalert - The alert.InterruptedException - When the service is stopped.ServiceNotAvailableException - When the service is not
available.protected boolean doSetUp()
doSetUp in class Alerter.Abstractprotected void doStart()
throws InterruptedException
doStart in class Alerter.AbstractInterruptedException - When interrupted.protected void doStop()
doStop in class Alerter.Abstractprotected void doTearDown()
doTearDown in class Alerter.Abstractprotected Alerter.SharedContext sharedContext()
sharedContext in class Alerter.AbstractCopyright © 2003-2019 Serge Brisson. All Rights Reserved.