Public Member Functions | |
SourceClient (ContainerServices svc) throws Exception | |
void | connect () throws Exception |
void | receive (ACSJMSMessageEntity msg) |
void | addAlarmListener (SourceListener newListener) |
boolean | removeListener (SourceListener listener) |
void | close () |
Protected Member Functions | |
void | finalize () throws Throwable |
Private Member Functions | |
synchronized void | dispatchFaultState (FaultState faultState) |
Private Attributes | |
HashSet< SourceListener > | listeners = new HashSet<SourceListener>() |
Consumer | m_consumer = null |
String | m_channelName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" |
ContainerServices | contSvcs |
volatile boolean | closed = false |
Logger | logger |
|
|
|
Add a listener for the alarms. Add the listeners to the set of listeners to be notified when a new alarms is received from the categories.
|
|
Frees all the resources |
|
Connect to the sources NC
|
|
This method is called by categories when a new message arrives and dispatches the alarm to the listeners.
|
|
Ensure that the resources have been released before destroying the object |
|
The method receives all the messages published in the NC For each message received it check if its content is right i.e. the name of the class, the member and the code contains the number of the message in the sequence. In this way it also checks if the messages are received in the same order they were sent. The method also checks if all the messages have been received and prints a message if receives more messages then the messages pushed
|
|
Remove a listener from the list of listeners to be notified when a new alarm is received
|
|
|
|
|
|
|
|
|
|
|
|
|