org.eso.ias.sink.email

Members list

Type members

Classlikes

class AlarmSnapshot(val alarm: Alarm, val validity: IasValidity, val timestamp: Long)

The state (snapshot) of the alarm recorded by the tracker.

The state (snapshot) of the alarm recorded by the tracker.

Value parameters

alarm

the activation state of the alarm

timestamp

the timestamp when the alarm has been set or cleared

validity

the validity

Attributes

Supertypes
class Object
trait Matchable
class Any

AlarmStateTracker records the changes of the state of an alarm to be notified to the user by email or some other mechanism.

AlarmStateTracker records the changes of the state of an alarm to be notified to the user by email or some other mechanism.

The update of an alarm is a AlarmState. The state is one of the values defined in Alarm so it records activation, priority, validity and deactivation.

The tracker saves the state of the last round i.e. the actual state before resetting. This allows to know if the state changed since the last reset and also avoid saving states if they did not change from one time interval to another

The AlarmStateTracker is immutable. New change of state are added at the head of the list.

Value parameters

id

the identifier of the alarm

stateChanges

The state changes recorded so far for the current time interval

stateOfLastRound

the last state before resetting

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class NotificationsSender(id: String, val sender: Sender) extends ValueListener

The NotificationsSender processes the alarms published in the BSDB and sends mails to registered recipients. One email is sent whenever an alarm becomes SET or CLEAR.

The NotificationsSender processes the alarms published in the BSDB and sends mails to registered recipients. One email is sent whenever an alarm becomes SET or CLEAR.

In addition another email is sent at regular time intervals to notify about the history of the alarm.

The sending of notification is delegated to the sender that allows to send notifications by different means (email logs, GSM,...) providing the proper implementations of the Sender trait.

Value parameters

id

identifier of the mail

sender

The sender of the notification

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
trait Sender

The notification sender sends notification to recipients.

The notification sender sends notification to recipients.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SmtpSender
class SenderTest
class SmtpSender(val server: String, val loginName: Option[String], val pswd: Option[String]) extends Sender

The sender of notifications by emails.

The sender of notifications by emails.

Value parameters

loginName

the optional login name to pass to the server

pswd

the optional passowrd to pass to the server

server

The SMTP server to send notifications to the receipients

Attributes

Supertypes
trait Sender
class Object
trait Matchable
class Any