137 void enter()
override;
152 void enter()
override;
154 void exit()
override;
166 void enter()
override;
167 void exit()
override;
180 void enter()
override;
Disk Collector.
Definition: health_monitor_disk.h:245
Critical State.
Definition: health_monitor_disk_state.h:163
void enter() override
Critical State - Enter If the server hasn't been fenced yet, then fence immediately.
Definition: health_monitor_disk_state.cc:384
void check_levels() override
Critical State - Check levels Server is (or should be) fenced, issue regular warnings.
Definition: health_monitor_disk_state.cc:406
void exit() override
Critical Limit State - Exit Clear Critical state variables.
Definition: health_monitor_disk_state.cc:398
Critical_State()
Definition: health_monitor_disk_state.h:165
Error State.
Definition: health_monitor_disk_state.h:177
void check_levels() override
Error State - Check levels.
Definition: health_monitor_disk_state.cc:452
void enter() override
Error State - Enter.
Definition: health_monitor_disk_state.cc:445
Error_State()
Definition: health_monitor_disk_state.h:179
Low Limit State.
Definition: health_monitor_disk_state.h:149
void check_levels() override
Low Limit State - Check levels Fallback timer was started in enter() and is counting down.
Definition: health_monitor_disk_state.cc:322
void enter() override
Low Limit State - Enter Start fallback timer countdown.
Definition: health_monitor_disk_state.cc:295
void exit() override
Low Limit State - Exit Cancel the fallback timer, clear Low Limit state variables.
Definition: health_monitor_disk_state.cc:308
Low_Limit_State()
Definition: health_monitor_disk_state.h:151
Normal State.
Definition: health_monitor_disk_state.h:122
void check_levels() override
Normal State - Check levels.
Definition: health_monitor_disk_state.cc:180
Normal_State()
Definition: health_monitor_disk_state.h:124
Start State.
Definition: health_monitor_disk_state.h:97
Start_State & operator=(const Start_State &)=delete
Start_State(const Start_State &)=delete
void check_levels() override
Start State - Check levels.
Definition: health_monitor_disk_state.cc:142
Start_State()
Definition: health_monitor_disk_state.h:99
Stop State.
Definition: health_monitor_disk_state.h:111
void check_levels() override
Stop State - Check levels.
Definition: health_monitor_disk_state.cc:161
Stop_State()
Definition: health_monitor_disk_state.h:113
Definition: health_monitor_disk_state.h:34
static bool low_level()
Definition: health_monitor_disk_state.cc:88
static void set_collector(Disk_Collector *collector)
Definition: health_monitor_disk_state.h:57
const std::string m_name
Definition: health_monitor_disk_state.h:87
static void set_low_limit_state()
Definition: health_monitor_disk_state.cc:106
static size_t warn_level_2_mb
Definition: health_monitor_disk_state.h:81
static size_t warn_level_1_mb
Definition: health_monitor_disk_state.h:80
static size_t recovery_level_mb
Definition: health_monitor_disk_state.h:84
static void set_normal_state()
Storage State - Transitions.
Definition: health_monitor_disk_state.cc:104
State
Definition: health_monitor_disk_state.h:36
@ CRITICAL
Definition: health_monitor_disk_state.h:43
@ ERROR
Definition: health_monitor_disk_state.h:46
@ START
Definition: health_monitor_disk_state.h:38
@ RECOVERY_2
Definition: health_monitor_disk_state.h:45
@ UNDEF
Definition: health_monitor_disk_state.h:37
@ STOP
Definition: health_monitor_disk_state.h:39
@ WARNING
Definition: health_monitor_disk_state.h:41
@ LOW_LIMIT
Definition: health_monitor_disk_state.h:42
@ RECOVERY_1
Definition: health_monitor_disk_state.h:44
@ NORMAL
Definition: health_monitor_disk_state.h:40
virtual void exit()
Definition: health_monitor_disk_state.h:56
static void set_error_state()
Definition: health_monitor_disk_state.cc:108
static size_t critical_level_mb
Definition: health_monitor_disk_state.h:79
static bool critical_level()
Definition: health_monitor_disk_state.cc:94
static size_t warn_level_3_mb
Definition: health_monitor_disk_state.h:82
enum State state() const
Definition: health_monitor_disk_state.h:60
static bool disk_error()
Definition: health_monitor_disk_state.cc:99
virtual void check_levels()
Definition: health_monitor_disk_state.h:55
static bool warning_level()
Definition: health_monitor_disk_state.cc:81
static void get_params()
Storage State - Get params Get the storage threshold params from the disk collector.
Definition: health_monitor_disk_state.cc:46
Storage_State(const char *state_name, State state)
Definition: health_monitor_disk_state.h:50
static bool normal_level()
Storage State - Storage levels.
Definition: health_monitor_disk_state.cc:75
static size_t available_mb
Definition: health_monitor_disk_state.h:75
static Disk_Collector * dc
Definition: health_monitor_disk_state.h:74
static size_t max_warn_level_mb
Definition: health_monitor_disk_state.h:83
virtual void enter()
Definition: health_monitor_disk_state.h:54
virtual ~Storage_State()=default
static void get_levels()
Storage State - Get levels Get the storage levels from the disk collector.
Definition: health_monitor_disk_state.cc:61
static void set_warning_state()
Definition: health_monitor_disk_state.cc:105
static size_t reserve_mb
Definition: health_monitor_disk_state.h:78
static void set_critical_state()
Definition: health_monitor_disk_state.cc:107
State m_state
Definition: health_monitor_disk_state.h:88
Warning State.
Definition: health_monitor_disk_state.h:134
void enter() override
Warning State - Enter Issue a warning immediately upon entering the warning state.
Definition: health_monitor_disk_state.cc:207
void check_levels() override
Warning State - Check levels Issue warnings when the warning level changes.
Definition: health_monitor_disk_state.cc:267
Warning_State()
Definition: health_monitor_disk_state.h:136
static bool check_warning_level()
Warning State - Check warning levels.
Definition: health_monitor_disk_state.cc:219
Definition: mrs_component_embedded_mysql_cache.h:33
Definition: component_command.h:29