Public Member Functions | |
CategoryClient (ContainerServices contServices) throws AlarmClientException | |
void | connect (AlarmSelectionListener listener) throws AlarmClientException, AcsJCannotGetComponentEx |
void | connect (AlarmSelectionListener listener, Category[] categories) throws AlarmClientException, AcsJCannotGetComponentEx |
void | close () throws AlarmClientException |
Alarm[] | getParents (String id, boolean node) throws AlarmClientException |
Alarm[] | getChildren (String id, boolean node) throws AlarmClientException |
int | getMultiplicityThreshold (String id) throws AlarmClientException |
Alarm[] | getActiveChildren (String id, boolean node) throws AlarmClientException |
Protected Member Functions | |
void | finalize () throws Throwable |
Private Member Functions | |
void | getAlarmServiceComponent () throws Exception |
void | addCategories (Configuration config, Category[] categories) throws Exception |
Alarm | convertAlarmType (alma.alarmsystem.Alarm alarm) |
Private Attributes | |
UserHandlerImpl | userHandler |
User | testUser |
Configuration | defaultConf |
AlarmSelectionHandler | jms_selectionHandler |
ContainerServices | contSvc |
Logger | logger |
final String | alarmServiceIDL = "*/AlarmService:*" |
AlarmService | alarm |
volatile boolean | closed = false |
It is a wrapper to CERN classes in order to simplify the usage from ACS without dealing with low level details of the alarm system.
The class connects to the alarm system as a CERN client, logging in a generic user. The listener receives alarms and errors from the alarm system by means of a callback. The alarm system sends all the already active alarms when the user logs is.
The close() method has to be called in order to free all the resources.
|
Constructor
|
|
Add the categories to the configuration i.e. add the categories the client wants to listen to
|
|
Release all the resource,
|
|
Connects to the passed categories of the alarm system
|
|
Connects to all the categories of the alarm system.
It is equivalent to
|
|
Convert a CORBA alarm into a client alarm.
|
|
Ensure that the resources have been released before destroying the object |
|
Get the active children of a reduced alarm. The method asks the alarm service component for the active children of a reduced alarm.
|
|
Connect the AlarmSrevice component |
|
Get the parents of a reduced alarm. The method asks the alarm service component for the children of a reduced alarm.
|
|
Return the threshold for the multiplicity node whose ID is passed as parameter.
|
|
Get the parents of a reduced alarm. The method asks the alarm service component for the parents of a reduced alarm.
|
|
|
|
|
|
To avoid to release the resources twice |
|
ACS ContainerServices |
|
The user to log in (test for instance) |
|
/ The alarm selection handler |
|
The logger |
|
The user to log in (test for instance) |
|
The user handler |