
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" |
Static Private Attributes | |
| static String | hostName = null |
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.
| static FaultState alma::alarmsystem::core::alarms::LaserCoreFaultState::createFaultState | ( | LaserCoreFaultCodes | FC, | |
| Properties | props, | |||
| boolean | active | |||
| ) | [inline, static] |
Create a FaultState for a given fault code and a given set of user properties.
| FC | The fault code of the alarm | |
| props | The user properties | |
| active | true if the alarm is active |
FaultState for the passed code References createFaultState(), and cern::laser::source::alarmsysteminterface::FaultState::setUserProperties().
| static FaultState alma::alarmsystem::core::alarms::LaserCoreFaultState::createFaultState | ( | LaserCoreFaultCodes | FC, | |
| boolean | active | |||
| ) | [inline, static] |
Create a FaultState for a given fault code.
| FC | The fault code of the alarm | |
| active | true if the alarm is active |
FaultState for the passed code References FaultFamily, FaultMember, cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::setDescriptor(), and cern::laser::source::alarmsysteminterface::impl::FaultStateImpl::setUserTimestamp().
Referenced by createFaultState().
| static ACSJMSTextMessage alma::alarmsystem::core::alarms::LaserCoreFaultState::createJMSMessage | ( | FaultState | fs, | |
| ContainerServicesBase | cs | |||
| ) | throws Exception [inline, static] |
Create an acs text jms message containing the passed fault state in form of XML (ASIMessage) in the body.
| fs | The FaultState to set in the message | |
| cs | The ContainerServicesBase |
References hostName, and com::cosylab::acs::jms::ACSJMSTextMessage::setText().
| static String [] alma::alarmsystem::core::alarms::LaserCoreFaultState::getCoreAlarmIds | ( | ) | [inline, static] |
Return the Ids of all the laser core alarms
References FaultFamily, and FaultMember.
final String alma::alarmsystem::core::alarms::LaserCoreFaultState::FaultFamily = "AlarmSystem" [static] |
The fault family of the alarms generated by the alarm service
Referenced by createFaultState(), and getCoreAlarmIds().
final String alma::alarmsystem::core::alarms::LaserCoreFaultState::FaultMember = "AlarmService" [static] |
The fault member of the alarms generated by the alarm service
Referenced by createFaultState(), and getCoreAlarmIds().
String alma::alarmsystem::core::alarms::LaserCoreFaultState::hostName = null [static, private] |
The host name
Referenced by createJMSMessage().
1.6.2