INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxutilacfr::TrivialStatus Class Reference A trivial implementation of the status API which does not assemble information. More...
Inheritance diagram for gbxutilacfr::TrivialStatus:
![]()
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◆ addSubsystem()
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 addSubsystem(). Referenced by addSubsystem(). ◆ componentStatus()
Does not keep track of individual subsystems and therefore cannot determine component status. Always throws Exception. Implements gbxutilacfr::Status. References componentStatus(). Referenced by componentStatus(). ◆ critical()
Sets subsystem health to Critical. Diagnostic message is required. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References critical(), and gbxutilacfr::SubsystemCritical. Referenced by critical(). ◆ fault()
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 fault(), gbxutilacfr::SubsystemCritical, and gbxutilacfr::SubsystemFault. Referenced by fault(). ◆ finalising()
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 finalising(), and gbxutilacfr::SubsystemFinalising. Referenced by finalising(). ◆ heartbeat()
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. References heartbeat(). Referenced by heartbeat(). ◆ initialising()
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 initialising(), and gbxutilacfr::SubsystemInitialising. Referenced by initialising(). ◆ message()
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. References message(). Referenced by message(). ◆ ok()
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 ok(), and gbxutilacfr::SubsystemOk. Referenced by ok(). ◆ process()
This function must be called periodically in order for status publishing to happen and stalled susbsystems identified. Implements gbxutilacfr::Status. References process(). Referenced by process(). ◆ removeSubsystem()
Removes a subsystem from the status descriptor. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References removeSubsystem(). Referenced by removeSubsystem(). ◆ setMaxHeartbeatInterval()
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. References setMaxHeartbeatInterval(). Referenced by setMaxHeartbeatInterval(). ◆ setSubsystemStatus()
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. References setSubsystemStatus(). Referenced by setSubsystemStatus(). ◆ warning()
Sets subsystem health to Warning. Diagnostic message is required. Throws Exception if the subsystem does not exist. Implements gbxutilacfr::Status. References gbxutilacfr::SubsystemWarning, and warning(). Referenced by warning(). ◆ working()
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, and working(). Referenced by working(). The documentation for this class was generated from the following files:
|