27 #ifndef FsBroker_Lib_StatusManager_h
28 #define FsBroker_Lib_StatusManager_h
106 #endif // FsBroker_Lib_Broker_h
void set_status(Status::Code code, const std::string &text)
Sets status.
Status::Code m_current_status
Current status.
Holds Nagios-style program status information.
StatusManager()
Constructor.
Code
Enumeration for status codes.
std::mutex m_mutex
Mutex for serializaing access to members
std::chrono::steady_clock::time_point m_last_write_error
Time of last reported write error.
void set_write_status(Status::Code code, const std::string &text)
Sets write status.
void set_read_status(Status::Code code, const std::string &text)
Sets read status.
std::chrono::steady_clock::time_point m_last_read_error
Time of last reported read error.
void set_error(int error)
Sets status to CRITICAL with status text associated with errno.
Manages file system broker status.
void set_write_error(int error)
Sets status to CRITICAL with status text associated with errno.
void set_read_error(int error)
Sets status to CRITICAL with status text associated with errno.
Status m_status
Status information.
void clear_status()
Clears status by setting it to OK.