MySQL 26.10.0
Source Code Documentation
hm::ms::Memory_State Class Reference

#include <health_monitor_memory_state.h>

Inheritance diagram for hm::ms::Memory_State:
[legend]

Public Types

enum  State {
  UNDEF , START , STOP , NORMAL ,
  WARNING , ERROR
}
 

Public Member Functions

 Memory_State ()=default
 
 Memory_State (const char *state_name, State state)
 
virtual ~Memory_State ()=default
 
virtual void enter ()
 
virtual void check_levels ()
 
virtual void exit ()
 
enum State state () const
 

Static Public Member Functions

static void set_collector (Memory_Collector *collector)
 
static void get_params ()
 Memory State - Get params Get the memory threshold params from the memory collector. More...
 
static void get_levels ()
 Memory State - Get levels Get the memory levels from the memory collector. More...
 

Static Public Attributes

static Memory_Collector * mc {nullptr}
 
static uint64_t available_mb {0}
 
static uint64_t low_space_limit_mb
 
static uint64_t critical_level_mb
 
static uint64_t warn_level_1_mb {0}
 
static uint64_t warn_level_2_mb {0}
 
static uint64_t warn_level_3_mb {0}
 
static uint64_t max_warn_level_mb {0}
 

Private Attributes

const std::string m_name
 
State m_state {UNDEF}
 

Member Enumeration Documentation

◆ State

Enumerator
UNDEF 
START 
STOP 
NORMAL 
WARNING 
ERROR 

Constructor & Destructor Documentation

◆ Memory_State() [1/2]

hm::ms::Memory_State::Memory_State ( )
default

◆ Memory_State() [2/2]

hm::ms::Memory_State::Memory_State ( const char *  state_name,
State  state 
)
inline

◆ ~Memory_State()

virtual hm::ms::Memory_State::~Memory_State ( )
virtualdefault

Member Function Documentation

◆ check_levels()

virtual void hm::ms::Memory_State::check_levels ( )
inlinevirtual

◆ enter()

virtual void hm::ms::Memory_State::enter ( )
inlinevirtual

◆ exit()

virtual void hm::ms::Memory_State::exit ( )
inlinevirtual

◆ get_levels()

void hm::Memory_State::get_levels ( )
static

Memory State - Get levels Get the memory levels from the memory collector.

◆ get_params()

void hm::Memory_State::get_params ( )
static

Memory State - Get params Get the memory threshold params from the memory collector.

◆ set_collector()

static void hm::ms::Memory_State::set_collector ( Memory_Collector *  collector)
inlinestatic

◆ state()

enum State hm::ms::Memory_State::state ( ) const
inline

Member Data Documentation

◆ available_mb

uint64_t hm::Memory_State::available_mb {0}
static

◆ critical_level_mb

uint64_t hm::ms::Memory_State::critical_level_mb
static

◆ low_space_limit_mb

uint64_t hm::ms::Memory_State::low_space_limit_mb
static

◆ m_name

const std::string hm::ms::Memory_State::m_name
private

◆ m_state

State hm::ms::Memory_State::m_state {UNDEF}
private

◆ max_warn_level_mb

uint64_t hm::Memory_State::max_warn_level_mb {0}
static

◆ mc

Memory_Collector * hm::Memory_State::mc {nullptr}
static

◆ warn_level_1_mb

uint64_t hm::Memory_State::warn_level_1_mb {0}
static

◆ warn_level_2_mb

uint64_t hm::Memory_State::warn_level_2_mb {0}
static

◆ warn_level_3_mb

uint64_t hm::Memory_State::warn_level_3_mb {0}
static

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