Public Member Functions | |
AlarmSender (ContainerServicesBase containerServices) | |
void | sendAlarm (String FF, String FM, int FC, Properties properties, boolean active) |
void | sendAlarm (String FF, String FM, int FC, boolean active) |
void | close () |
A support class for sending alarms.
alma.acs.alarmsystem.source.AlarmSender.AlarmSender | ( | ContainerServicesBase | containerServices | ) |
Constructor
containerServices | The ContainerServicesBase |
void alma.acs.alarmsystem.source.AlarmSender.close | ( | ) |
Closes the alarm sending and frees the resources.
This is the last method to be executed: after it is not possible to send alarms anymore.
Referenced by alma.acs.alarmsystem.source.AlarmSourceImpl.tearDown().
void alma.acs.alarmsystem.source.AlarmSender.sendAlarm | ( | String | FF, | |
String | FM, | |||
int | FC, | |||
Properties | properties, | |||
boolean | active | |||
) |
Send an alarm with user properties
FF | The fault family | |
FM | The fault member | |
FC | The fault code | |
properties | The properties (can be null or empty) | |
active | If true the alarm is activated otherwise it is terminated |
References alma.acs.container.ContainerServicesBase.getLogger(), alma.alarmsystem.source.ACSAlarmSystemInterface.push(), alma.alarmsystem.source.ACSFaultState.setDescriptor(), alma.alarmsystem.source.ACSFaultState.setUserProperties(), and alma.alarmsystem.source.ACSFaultState.setUserTimestamp().
Referenced by alma.acs.alarmsystem.source.AlarmSourceImpl.raiseAlarm(), and alma.acs.alarmsystem.source.AlarmSender.sendAlarm().
void alma.acs.alarmsystem.source.AlarmSender.sendAlarm | ( | String | FF, | |
String | FM, | |||
int | FC, | |||
boolean | active | |||
) |
Send an alarm with no user properties
FF | The fault family | |
FM | The fault member | |
FC | The fault code | |
active | If true the alarm is activated otherwise it is terminated |
References alma.acs.alarmsystem.source.AlarmSender.sendAlarm().