MySQL 26.10.0
Source Code Documentation
hm::ds::Low_Limit_State Class Reference

Low Limit State. More...

#include <health_monitor_disk_state.h>

Inheritance diagram for hm::ds::Low_Limit_State:
[legend]

Public Member Functions

 Low_Limit_State ()
 
void enter () override
 Low Limit State - Enter Start fallback timer countdown. More...
 
void check_levels () override
 Low Limit State - Check levels Fallback timer was started in enter() and is counting down. More...
 
void exit () override
 Low Limit State - Exit Cancel the fallback timer, clear Low Limit state variables. More...
 
- Public Member Functions inherited from hm::ds::Storage_State
 Storage_State ()=default
 
 Storage_State (const char *state_name, State state)
 
virtual ~Storage_State ()=default
 
enum State state () const
 

Additional Inherited Members

- Public Types inherited from hm::ds::Storage_State
enum  State {
  UNDEF , START , STOP , NORMAL ,
  WARNING , LOW_LIMIT , CRITICAL , RECOVERY_1 ,
  RECOVERY_2 , ERROR
}
 
- Static Public Member Functions inherited from hm::ds::Storage_State
static void set_collector (Disk_Collector *collector)
 
static void get_params ()
 Storage State - Get params Get the storage threshold params from the disk collector. More...
 
static void get_levels ()
 Storage State - Get levels Get the storage levels from the disk collector. More...
 
static bool normal_level ()
 Storage State - Storage levels. More...
 
static bool warning_level ()
 
static bool low_level ()
 
static bool critical_level ()
 
static bool disk_error ()
 
static void set_normal_state ()
 Storage State - Transitions. More...
 
static void set_warning_state ()
 
static void set_low_limit_state ()
 
static void set_critical_state ()
 
static void set_error_state ()
 
- Static Public Attributes inherited from hm::ds::Storage_State
static Disk_Collector * dc {nullptr}
 
static size_t available_mb {0}
 
static size_t reserve_mb {0}
 
static size_t critical_level_mb {0}
 
static size_t warn_level_1_mb {0}
 
static size_t warn_level_2_mb {0}
 
static size_t warn_level_3_mb {0}
 
static size_t max_warn_level_mb {0}
 
static size_t recovery_level_mb {0}
 

Detailed Description

Low Limit State.

Available space is below the low space limit but still above the critical space limit. Entering the low limit state starts the fallback timer.

Constructor & Destructor Documentation

◆ Low_Limit_State()

hm::ds::Low_Limit_State::Low_Limit_State ( )
inline

Member Function Documentation

◆ check_levels()

void hm::Low_Limit_State::check_levels ( )
overridevirtual

Low Limit State - Check levels Fallback timer was started in enter() and is counting down.

Issue warnings every 10 seconds. Fallback timer will be canceled in exit() before transitioning to new state.

Reimplemented from hm::ds::Storage_State.

◆ enter()

void hm::Low_Limit_State::enter ( )
overridevirtual

Low Limit State - Enter Start fallback timer countdown.

Reimplemented from hm::ds::Storage_State.

◆ exit()

void hm::Low_Limit_State::exit ( )
overridevirtual

Low Limit State - Exit Cancel the fallback timer, clear Low Limit state variables.

Reimplemented from hm::ds::Storage_State.


The documentation for this class was generated from the following files: