public class AlarmSender
extends java.lang.Object
| Constructor and Description |
|---|
AlarmSender(ContainerServicesBase containerServices)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the alarm sending and frees the resources.
|
void |
sendAlarm(java.lang.String FF,
java.lang.String FM,
int FC,
boolean active)
Send an alarm with no user properties
|
void |
sendAlarm(java.lang.String FF,
java.lang.String FM,
int FC,
java.util.Properties properties,
boolean active)
Send an alarm with user properties
|
public AlarmSender(ContainerServicesBase containerServices)
containerServices - The ContainerServicesBasepublic void sendAlarm(java.lang.String FF,
java.lang.String FM,
int FC,
java.util.Properties properties,
boolean active)
FF - The fault familyFM - The fault memberFC - The fault codeproperties - The properties (can be null or empty)active - If true the alarm is activated otherwise it is terminatedpublic void sendAlarm(java.lang.String FF,
java.lang.String FM,
int FC,
boolean active)
FF - The fault familyFM - The fault memberFC - The fault codeactive - If true the alarm is activated otherwise it is terminatedsendAlarm(String, String, int, Properties, boolean)public void close()
This is the last method to be executed: after it is not possible to send alarms anymore.