- send(String, String) - Method in class com.solab.alarms.AbstractAlarmChannel
-
Sends an alarm message for the specified source.
- send(String, String) - Method in interface com.solab.alarms.AlarmChannel
-
Sends the alarm message to the users defined for the channel.
- sendAlarm(String, String) - Method in interface com.solab.alarms.AlarmSender
-
Sends an alarm through all channels, to the users defined for the specified source in each channel,
as long as the message hasn't been already sent very recently.
- sendAlarm(String) - Method in interface com.solab.alarms.AlarmSender
-
Sends an alarm through all channels, to the default users defined for each channel, as long as
the message hasn't been already sent very recently.
- sendAlarm(String, String) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sends an alarm through all channels, to the users defined for the specified source in each channel,
as long as the message hasn't been already sent very recently.
- sendAlarm(String) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sends an alarm through all channels, to the default users defined for each channel, as long as
the message hasn't been already sent very recently.
- sendAlarmAlways(String, String) - Method in interface com.solab.alarms.AlarmSender
-
Sends an alarm through all channels, to the users defined for the specified source in each channel,
regardless of the last time the same message was sent.
- sendAlarmAlways(String) - Method in interface com.solab.alarms.AlarmSender
-
Sends an alarm through all channels, to the default users defined for each channel, regardless
of the last time the same message was sent.
- sendAlarmAlways(String, String) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sends an alarm through all channels, to the users defined for the specified source in each channel,
regardless of the last time the same message was sent.
- sendAlarmAlways(String) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sends an alarm through all channels, to the default users defined for each channel, regardless
of the last time the same message was sent.
- sendCachedAlarms() - Method in class com.solab.alarms.AlarmSenderImpl
-
Sends the alarms that have been cached, if the conditions are right.
- setAccessToken(String) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
Sets the access token obtained with the TwitterAuth program; this allows jAlarms to post
status updates to the twitter account set up for the alarms.
- setAlarmCache(AlarmCache) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sets the cache to use for alarm messages.
- setAlarmChannels(List<AlarmChannel>) - Method in class com.solab.alarms.AlarmSenderImpl
-
Sets the alarm channels to be used for sending alarm messages.
- setAlarmSource(Set<String>) - Method in class com.solab.alarms.channels.HttpChannel
-
You can set a list of sources in this property so that only alarm messages matching any of the sources
are be posted as status updates.
- setAlarmSource(String) - Method in class com.solab.alarms.channels.TestChannel
-
Sets a value that will be matched against the sources received in
TestChannel.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.
- setAlarmSource(Set<String>) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
You can set a list of sources in this property so that only alarm messages matching any of the sources
are be posted as status updates.
- setAlarmTimeBuffer(int) - Method in class com.solab.alarms.AlarmSenderImpl
-
- setAllowSynchronousSend(boolean) - Method in class com.solab.alarms.AbstractAlarmChannel
-
Allow synchronous sending of alarms, if the thread pool for a channel rejects asynchronous
execution.
- setApiUrl(String) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
Sets the Twitter API URL to update the user's status.
- setCommand(String) - Method in class com.solab.alarms.channels.CommandLineChannel
-
Sets the command to execute, as a single statement to be execute.
- setCommandsBySource(Map<String, String>) - Method in class com.solab.alarms.channels.CommandLineChannel
-
Sets a map with different commands to be executed depending on the alarm source.
- setCommandsWithArgsBySource(Map<String, String[]>) - Method in class com.solab.alarms.channels.CommandLineChannel
-
Sets a map with different commands to be executed depending on the alarm source.
- setCommandWithArgs(List<String>) - Method in class com.solab.alarms.channels.CommandLineChannel
-
Sets the command to execute, with each argument as a separate element.
- setConnectTimeout(int) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
Sets the connection timeout, in milliseconds.
- setDefaultInterval(int) - Method in class com.solab.alarms.DefaultAlarmCache
-
Sets the default resend interval, for storing alarms unrelated to a specific channel,
in milliseconds.
- setExpectedResponse(String) - Method in class com.solab.alarms.channels.HttpChannel
-
If this property is set, the channel waits for a response and scans it for this particular string,
warning if not found.
- setMinResendInterval(int) - Method in class com.solab.alarms.AbstractAlarmChannel
-
Sets the minimum amount of time between equal messsages.
- setPostData(String) - Method in class com.solab.alarms.channels.HttpChannel
-
Sets the POST data for the HTTP request.
- setPrefix(String) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
This is an optional property; you can set a prefix to be used in all the status updates;
this is useful in cases where you need to use the same Twitter account for more than one
application, so you can tell which one sent the alarm.
- setReadTimeout(int) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
Sets the timeout to wait for a response, in milliseconds.
- setTokenSecret(String) - Method in class com.solab.alarms.channels.twitter.TwitterChannel
-
Sets the token secret obtained with the TwitterAuth program; this allows jAlarms to post
status updates to the twitter account set up for the alarms.
- setUrl(String) - Method in class com.solab.alarms.channels.HttpChannel
-
Sets the URL to send the alarm to.
- shouldResend(AlarmChannel, String, String) - Method in interface com.solab.alarms.AlarmCache
-
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).
- shouldResend(AlarmChannel, String, String) - Method in class com.solab.alarms.DefaultAlarmCache
-
- shutdown() - Method in class com.solab.alarms.AbstractAlarmChannel
-
Shuts down the thread pool and rejects any more incoming alarms.
- shutdown() - Method in interface com.solab.alarms.AlarmCache
-
Subclasses must override this, closing and freeing up any resources they use (connections, etc).
- shutdown() - Method in interface com.solab.alarms.AlarmChannel
-
Shuts the channel down, closing any open connections it has and freeing up all its resources.
- shutdown() - Method in class com.solab.alarms.AlarmSenderImpl
-
Shuts down all channels, and the alarm cache.
- shutdown() - Method in class com.solab.alarms.DefaultAlarmCache
-
- store(AlarmChannel, String, String) - Method in interface com.solab.alarms.AlarmCache
-
Stores the current date for the specified message and optional source, for the given channel.
- store(AlarmChannel, String, String) - Method in class com.solab.alarms.DefaultAlarmCache
-