Public Member Functions | |
| CategoryClient (ContainerServices svc) throws Exception | |
| void | connect (Category[] categoriesToConnect) throws Exception |
| void | connect () throws Exception |
| void | disconnect () |
| void | addAlarmListener (CategoryListener newListener) |
| boolean | removeListener (CategoryListener listener) |
| synchronized void | dispatchAlarm (AlarmView newAlarm) |
Private Member Functions | |
| void | getAlarmServiceComponent () throws Exception |
| void | releaseAlarmServiceComponent () |
| void | getCategories () throws Exception |
| void | dumpCategories () |
| void | initialize () throws Exception |
Private Attributes | |
| ContainerServices | contSvc |
| String | categoryRootTopic |
| Category[] | categories |
| CategorySubscriber[] | consumers |
| String | alarmName |
| final String | alarmServiceIDL = "*/AlarmService:*" |
| AlarmService | alarm |
| HashSet< CategoryListener > | listeners = new HashSet<CategoryListener>() |
|
|
Constructor
|
|
|
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.
|
|
|
Connect to all available categories |
|
|
Create the consumers for the passed categories
|
|
|
Disconnect all the categories |
|
|
This method is called by categories when a new message arrives and dispatches the alarm to the listeners.
|
|
|
Dumps the category |
|
|
Connect the AlarmSrevice component |
|
|
Read the categories and the category root topic from the component
|
|
|
Initialize the client. It connects to the alarm component, get the list of the categories and release the component. |
|
|
Release the alarm component |
|
|
Remove a listener from the list of listeners to be notified when a new alarm is received
|
|
|
|
|
|
|
|
|
|
|
|
The categories Each category is a notification channel we have to listen to. The list of the categories is read from the AlarmServise component |
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8