class AlarmClient ifndef DMTOFFLINE : private lmsg AppClient endif Alarm Client API The alarm client API provides an interface to the alarm manager. Refer to xxxx for a full description of the Alarm Manager functionality. The AlarmClient API allows the client process to:
- Define Alarm Types: The alarm manager keeps a list of currently defined alarm types. The alarm must be defined by a process before it can be set. The definition specifies defaul values for all alarm parameters.
- Set Alarms: Alarms are set or asserted when an abnormal condidstion is detected. The alarm remains in effect until it times out or is cancelled explicitly.
- Prolong Alarms: Alarms are created with an expected timeout period. If the error condition is not resolved in the expected time, the monitor that detected the alarm may prolong the alarm duration.
- Cancel Alarms: Alarms may be cancelled explicitly if the condition is resolved before the timeout period.
- Interrogate alarm status: The status of an individual alarm and the default parameters of an alarm type may be interrogated.
| | AlarmClient (const char* name=0) Construct an alarm client interface. |
| | ~AlarmClient (void) Alarm client destructor |
| | cancelAlarm (const AlarmHandle& handle) Cancel an alarm. |
| | defineAlarm (const std::string& ID, Interval timeout=0.0, int severe=0, const std::string& desc="", const std::string& params="") define an alarm type |
| | defineAlarm (const AlarmData& x) define an alarm type |
| | getActive (const AlarmID& x, std::vector<AlarmHandle>& reply) Get active alarm handles. |
| | getDefined (const AlarmID& x, std::string& reply) Get defined alarm type |
| | getTemplate (const AlarmID& aid, AlarmData& reply) Get defined alarm template. |
| | prolongAlarm (const AlarmHandle& handle, Interval dt) Prolong an alarm. |
| | remove (const AlarmID& aid) Remove an alarm type. |
| | setAlarm (const AlarmData& alarm, AlarmHandle& reply) Issue an alarm. |
| | setDebug (int level) Set the debug level. |
| | setDisable (const AlarmID& aid, bool flag=true) Disable an alarm type. |
| | setName (const std::string& name) set the monitor name. |
| | testAlarm (const AlarmHandle& x, AlarmData& reply) Get alarm status. |
Alarm Client API The alarm client API provides an interface to the alarm manager. Refer to xxxx for a full description of the Alarm Manager functionality. The AlarmClient API allows the client process to:
- Define Alarm Types: The alarm manager keeps a list of currently defined alarm types. The alarm must be defined by a process before it can be set. The definition specifies defaul values for all alarm parameters.
- Set Alarms: Alarms are set or asserted when an abnormal condidstion is detected. The alarm remains in effect until it times out or is cancelled explicitly.
- Prolong Alarms: Alarms are created with an expected timeout period. If the error condition is not resolved in the expected time, the monitor that detected the alarm may prolong the alarm duration.
- Cancel Alarms: Alarms may be cancelled explicitly if the condition is resolved before the timeout period.
- Interrogate alarm status: The status of an individual alarm and the default parameters of an alarm type may be interrogated.
virtual ~AlarmClient(void)
lmsg::error_type cancelAlarm(const AlarmHandle& handle)
lmsg::error_type defineAlarm(const std::string& ID, Interval timeout=0.0, int severe=0, const std::string& desc="", const std::string& params="")
timeout - Default time before alarm expiry.
severe - Default alarm severity.
desc - Alarm description string file or URL.
params - Parameter substitution string.
lmsg::error_type defineAlarm(const AlarmData& x)
lmsg::error_type getActive(const AlarmID& x, std::vector<AlarmHandle>& reply)
reply - Vector of alarm handles.
lmsg::error_type getDefined(const AlarmID& x, std::string& reply)
reply - string of alarm IDs.
lmsg::error_type getTemplate(const AlarmID& aid, AlarmData& reply)
reply - Template infomation kept by the manager.
lmsg::error_type prolongAlarm(const AlarmHandle& handle, Interval dt)
dt - Duration increment.
lmsg::error_type remove(const AlarmID& aid)
lmsg::error_type setAlarm(const AlarmData& alarm, AlarmHandle& reply)
reply - Handle to the alarm is successfully issued.
void setDebug(int level)
lmsg::error_type setDisable(const AlarmID& aid, bool flag=true)
flag - If true the alarm is diabled, if false it is enabled.
void setName(const std::string& name)
lmsg::error_type testAlarm(const AlarmHandle& x, AlarmData& reply)
reply - Status of alaram (returned).
; Last Modified
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++