public class EmailHandlerRT extends EventHandlerRT implements ModelTimeoutClient<EventInstance>
Modifier and Type | Class and Description |
---|---|
private static class |
EmailHandlerRT.NotificationType |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
activeRecipients |
private com.serotonin.timer.TimerTask |
escalationTask |
private java.util.Set<java.lang.String> |
inactiveRecipients
The list of all of the recipients - active and escalation - for sending
upon inactive if configured to do so.
|
private static org.apache.commons.logging.Log |
LOG |
vo
Constructor and Description |
---|
EmailHandlerRT(EventHandlerVO vo) |
Modifier and Type | Method and Description |
---|---|
void |
eventInactive(EventInstance evt)
Called when the event is considered inactive.
|
void |
eventRaised(EventInstance evt)
Not all events that are raised are made active.
|
java.util.Set<java.lang.String> |
getActiveRecipients() |
void |
scheduleTimeout(EventInstance evt,
long fireTime) |
static void |
sendActiveEmail(EventInstance evt,
java.util.Set<java.lang.String> addresses) |
private void |
sendEmail(EventInstance evt,
EmailHandlerRT.NotificationType notificationType,
java.util.Set<java.lang.String> addresses) |
private static void |
sendEmail(EventInstance evt,
EmailHandlerRT.NotificationType notificationType,
java.util.Set<java.lang.String> addresses,
java.lang.String alias) |
private static final org.apache.commons.logging.Log LOG
private com.serotonin.timer.TimerTask escalationTask
private java.util.Set<java.lang.String> activeRecipients
private java.util.Set<java.lang.String> inactiveRecipients
public EmailHandlerRT(EventHandlerVO vo)
public java.util.Set<java.lang.String> getActiveRecipients()
public void eventRaised(EventInstance evt)
EventHandlerRT
eventRaised
in class EventHandlerRT
for details.
public void scheduleTimeout(EventInstance evt, long fireTime)
scheduleTimeout
in interface ModelTimeoutClient<EventInstance>
public void eventInactive(EventInstance evt)
EventHandlerRT
eventInactive
in class EventHandlerRT
for details.
public static void sendActiveEmail(EventInstance evt, java.util.Set<java.lang.String> addresses)
private void sendEmail(EventInstance evt, EmailHandlerRT.NotificationType notificationType, java.util.Set<java.lang.String> addresses)
private static void sendEmail(EventInstance evt, EmailHandlerRT.NotificationType notificationType, java.util.Set<java.lang.String> addresses, java.lang.String alias)