INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxutilacfr::TrivialStatus Class ReferenceA trivial implementation of the status API which does not assemble information. More...
Inherits gbxutilacfr::Status.
Detailed DescriptionA trivial implementation of the status API which does not assemble information.System status information is not assembled but all changes are traced to Tracer.
Member Function Documentation
Adds a new subsystem to the system status descriptor. This command must be called before actually modifying the subsystem status, i.e. all other status commands will raise an exception if a subsystem with that name does not already exists. An Exception is also raised when trying to add a subsystem with an existing name. It is possible to specify the maximum expected interval between heartbeats. See setMaxHeartbeatInterval() for details. It is also possible to describe the expected behavior of the subsystem by specifying SubsystemType. See setSubsystemType() for details. The initial status of the new subsystem is the same as produced by the empty constructor of SubsystemStatus. Implements gbxutilacfr::Status. References gbxutilacfr::Tracer::warning().
Does not keep track of individual subsystems and therefore cannot determine component status. Always throws Exception. Implements gbxutilacfr::Status.
Sets subsystem health to Critical. Diagnostic message is required. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemCritical.
Sets state of the subsystem to Fault. Diagnostic message is required. Subsystem health is automatically changed to Critical. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemCritical, and gbxutilacfr::SubsystemFault.
Sets state of the subsystem to Finalising. Health and message are not affected. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemFinalising.
Record heartbeat from a subsystem: let Status know the subsystem is alive without modifying its status. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status.
Sets state of the subsystem to Initialising. Health and message are not affected. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemInitialising.
Change the human-readable message for a subsystem but keep the previous state and health information. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status.
Sets subsystem health to Ok. The old message is cleared if a new one is not supplied. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemOk.
This function must be called periodically in order for status publishing to happen and stalled susbsystems identified. Implements gbxutilacfr::Status.
Removes a subsystem from the status descriptor. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::Tracer::warning().
Sets the maximum expected interval between heartbeats (in seconds). When time since the last heartbeat exceeds the specified value, the subsystem is considered stalled. Negative interval means infinite interval. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status.
Sets the status of a subsystem (both state and health) in an atomic operation. Use this method when both state and health have changed. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status.
Sets subsystem health to Warning. Diagnostic message is required. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemWarning.
Sets state of the subsystem to Working. Health and message are not affected. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemWorking.
The documentation for this class was generated from the following files:
|