![]() |
MySQL 26.10.0
Source Code Documentation
|
Server mode timer used for fallback mode, recovery mode, etc. More...
#include <health_monitor_timer.h>
Public Member Functions | |
| Mode_Timer ()=default | |
| Mode_Timer (std::string &name, const int interval) | |
| void | start () |
| Mode Timer - Start. More... | |
| void | stop () |
| void | cancel () |
| Mode Timer - Cancel. More... | |
| void | reset () |
| Mode Timer - Reset. More... | |
| void | set_timeout (int timeout) |
| Mode Timer - Set timeout. More... | |
| void | adjust_timeout () |
| Mode Timer - Adjust timeout. More... | |
| void | tick () |
| Mode Timer - Tick. More... | |
| bool | report_status () const |
| Mode Timer - Report status. More... | |
| std::string | format_status () const |
| Mode Timer - Format status. More... | |
| bool | canceled () const |
| void | set_canceled (bool canceled) |
| bool | expired () const |
| int | interval () const |
| void | set_interval (int interval) |
| int | report_interval () const |
| void | set_report_interval (int interval) |
| int | remaining () const |
| Mode Timer - Remaining time. More... | |
| bool | running () const |
| bool | started () const |
| int | timeout () const |
| std::string | name () const |
| void | set_name (const std::string name) |
| std::string | running_msg () const |
| void | set_running_msg (const std::string &msg) |
Private Attributes | |
| std::string | m_name |
| int | m_timer {0} |
| int | m_interval {k_default_timer_interval} |
| int | m_report_interval {k_default_report_interval} |
| int | m_timeout {0} |
| bool | m_running {false} |
| bool | m_started {false} |
| bool | m_expired {false} |
| bool | m_canceled {false} |
| std::string | m_running_msg |
Server mode timer used for fallback mode, recovery mode, etc.
NOTE: This timer assumes a constant Collector base interval. If the base interval is dynamic, then the Mode_Timer must be modified to use the current Collector base interval for the tick interval.
|
default |
|
inline |
| void hm::Mode_Timer::adjust_timeout | ( | ) |
Mode Timer - Adjust timeout.
| void hm::Mode_Timer::cancel | ( | ) |
Mode Timer - Cancel.
|
inline |
|
inline |
| std::string hm::Mode_Timer::format_status | ( | ) | const |
Mode Timer - Format status.
|
inline |
|
inline |
| int hm::Mode_Timer::remaining | ( | ) | const |
Mode Timer - Remaining time.
|
inline |
| bool hm::Mode_Timer::report_status | ( | ) | const |
Mode Timer - Report status.
| void hm::Mode_Timer::reset | ( | ) |
Mode Timer - Reset.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void hm::Mode_Timer::set_timeout | ( | int | timeout | ) |
Mode Timer - Set timeout.
| void hm::Mode_Timer::start | ( | ) |
Mode Timer - Start.
|
inline |
|
inline |
| void hm::Mode_Timer::tick | ( | ) |
Mode Timer - Tick.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |