Package | Description |
---|---|
com.solab.alarms |
This package contains the main classes and interfaces for the library, as well as the main class, AlarmSender.
|
com.solab.alarms.channels |
This package contains concrete implementations for different AlarmChannels which do not have any external
dependencies.
|
com.solab.alarms.channels.twitter |
This package contains the TwitterChannel component and the TwitterAuth program.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAlarmChannel
An abstract implementation of AlarmChannel, to ease the creation of custom channels.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AlarmCache.shouldResend(AlarmChannel channel,
String source,
String message)
This method returns true if the specified message with optional source has not been sent through
the specified channel very recently (meaning the resend interval for the channel has elapsed).
|
boolean |
DefaultAlarmCache.shouldResend(AlarmChannel channel,
String source,
String message) |
void |
AlarmCache.store(AlarmChannel channel,
String source,
String message)
Stores the current date for the specified message and optional source, for the given channel.
|
void |
DefaultAlarmCache.store(AlarmChannel channel,
String source,
String message) |
Modifier and Type | Method and Description |
---|---|
void |
AlarmSenderImpl.setAlarmChannels(List<AlarmChannel> channels)
Sets the alarm channels to be used for sending alarm messages.
|
Modifier and Type | Class and Description |
---|---|
class |
CommandLineChannel
This alarm channel executes a command-line program, either passing the alarm message as a parameter to it as an argument of ${alarm},
or feeding the alarm message to its STDIN.
|
class |
HttpChannel
This channel can send an alarm over an HTTP GET or POST request.
|
class |
TestChannel
A very simple alarm channel that only prints the alarm messages to STDOUT.
|
Modifier and Type | Class and Description |
---|---|
class |
TwitterChannel
A channel that uses Twitter to publish alarms.
|