MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
collector::MysqlCacheManager::MysqlCacheCallbacks Class Reference

#include <mysql_cache_manager.h>

Inheritance diagram for collector::MysqlCacheManager::MysqlCacheCallbacks:
[legend]

Public Member Functions

 MysqlCacheCallbacks (const ConnectionConfiguration &configuration=ConnectionConfiguration{}, const std::string &role={})
 
bool object_before_cache (Object, bool dirty) override
 
bool object_retrived_from_cache (Object) override
 
void object_remove (Object) override
 
Object object_allocate (bool wait) override
 
bool is_default_user (Object &) const
 
const ConnectionConfigurationget_connection_configuration () const
 
- Public Member Functions inherited from collector::CacheManager< Obj >::Callbacks
virtual ~Callbacks ()=default
 

Private Member Functions

void object_restore_defaults (Object &, bool dirty)
 
bool is_default_server (Object &) const
 
ConnectionParameters new_connection_params (bool wait)
 

Private Attributes

ConnectionConfiguration connection_configuration_
 
std::string role_
 
int node_rount_robin_ {0}
 

Additional Inherited Members

- Public Types inherited from collector::CacheManager< Obj >::Callbacks
using Object = CacheManager::Object
 

Constructor & Destructor Documentation

◆ MysqlCacheCallbacks()

collector::MysqlCacheManager::MysqlCacheCallbacks::MysqlCacheCallbacks ( const ConnectionConfiguration configuration = ConnectionConfiguration{},
const std::string &  role = {} 
)
inline

Member Function Documentation

◆ get_connection_configuration()

const ConnectionConfiguration & collector::MysqlCacheManager::MysqlCacheCallbacks::get_connection_configuration ( ) const

◆ is_default_server()

bool collector::MysqlCacheManager::MysqlCacheCallbacks::is_default_server ( Object obj) const
private

◆ is_default_user()

bool collector::MysqlCacheManager::MysqlCacheCallbacks::is_default_user ( Object obj) const

◆ new_connection_params()

MysqlCacheManager::ConnectionParameters collector::MysqlCacheManager::MysqlCacheCallbacks::new_connection_params ( bool  wait)
private

◆ object_allocate()

Object collector::MysqlCacheManager::MysqlCacheCallbacks::object_allocate ( bool  wait)
overridevirtual

◆ object_before_cache()

bool collector::MysqlCacheManager::MysqlCacheCallbacks::object_before_cache ( Object  obj,
bool  dirty 
)
overridevirtual

◆ object_remove()

void collector::MysqlCacheManager::MysqlCacheCallbacks::object_remove ( Object  obj)
overridevirtual

◆ object_restore_defaults()

void collector::MysqlCacheManager::MysqlCacheCallbacks::object_restore_defaults ( Object obj,
bool  dirty 
)
private

◆ object_retrived_from_cache()

bool collector::MysqlCacheManager::MysqlCacheCallbacks::object_retrived_from_cache ( Object  connection)
overridevirtual

Member Data Documentation

◆ connection_configuration_

ConnectionConfiguration collector::MysqlCacheManager::MysqlCacheCallbacks::connection_configuration_
private

◆ node_rount_robin_

int collector::MysqlCacheManager::MysqlCacheCallbacks::node_rount_robin_ {0}
private

◆ role_

std::string collector::MysqlCacheManager::MysqlCacheCallbacks::role_
private

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