Public Types | Static Public Member Functions | Static Public Attributes

alma.alarmsystem.core.alarms.LaserCoreFaultState Class Reference

List of all members.

Public Types

enum  LaserCoreFaultCodes {
  CDB_UNAVAILABLE, ALARMS_CDB, CATEGORIES_CDB, JMS_INIT,
  SOURCE_LISTENER
}

Static Public Member Functions

static FaultState createFaultState (LaserCoreFaultCodes FC, boolean active)
static FaultState createFaultState (LaserCoreFaultCodes FC, Properties props, boolean active)
static ACSJMSTextMessage createJMSMessage (FaultState fs, ContainerServicesBase cs) throws Exception
static String[] getCoreAlarmIds ()

Static Public Attributes

static final String FaultFamily = "AlarmSystem"
static final String FaultMember = "AlarmService"

Detailed Description

An helper class to create fault states generated by the alarm component.

All the alarms generated by the alarm service belong to the AlarmSystem fault family and to the AlarmService fault member.

Author:
acaproni

Member Enumeration Documentation

The fault code of the alarms generated by the alarm service.

Author:
acaproni
Enumerator:
CDB_UNAVAILABLE 
ALARMS_CDB 
CATEGORIES_CDB 
JMS_INIT 
SOURCE_LISTENER 

Member Function Documentation

static FaultState alma.alarmsystem.core.alarms.LaserCoreFaultState.createFaultState ( LaserCoreFaultCodes  FC,
boolean  active 
) [static]
static FaultState alma.alarmsystem.core.alarms.LaserCoreFaultState.createFaultState ( LaserCoreFaultCodes  FC,
Properties  props,
boolean  active 
) [static]

Create a FaultState for a given fault code and a given set of user properties.

Parameters:
FC The fault code of the alarm
props The user properties
active true if the alarm is active
Returns:
The FaultState for the passed code

References alma.alarmsystem.core.alarms.LaserCoreFaultState.createFaultState(), and cern.laser.source.alarmsysteminterface.FaultState.setUserProperties().

static ACSJMSTextMessage alma.alarmsystem.core.alarms.LaserCoreFaultState.createJMSMessage ( FaultState  fs,
ContainerServicesBase  cs 
) throws Exception [static]

Create an acs text jms message containing the passed fault state in form of XML (ASIMessage) in the body.

Parameters:
fs The FaultState to set in the message
cs The ContainerServicesBase
Returns:
The jms text message containing the fault state

References com.cosylab.acs.jms.ACSJMSTextMessage.setText().

static String [] alma.alarmsystem.core.alarms.LaserCoreFaultState.getCoreAlarmIds (  )  [static]

Return the Ids of all the laser core alarms

Returns:
The array with the Ids of all the core alarms

References alma.alarmsystem.core.alarms.LaserCoreFaultState.FaultFamily, and alma.alarmsystem.core.alarms.LaserCoreFaultState.FaultMember.


Member Data Documentation

final String alma.alarmsystem.core.alarms.LaserCoreFaultState.FaultFamily = "AlarmSystem" [static]
final String alma.alarmsystem.core.alarms.LaserCoreFaultState.FaultMember = "AlarmService" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties