MySQL 9.3.0
Source Code Documentation
mrs::database::SchemaMonitor::MetadataSourceDestination Class Reference

Public Member Functions

 MetadataSourceDestination (collector::MysqlCacheManager *cache, const bool is_dynamic)
 
std::optional< collector::MysqlCacheManager::CachedObjectget_rw_session ()
 
bool handle_error ()
 

Private Types

enum  DestinationState { k_ok , k_read_only , k_offline }
 

Private Attributes

DestinationState current_destination_state_
 
DestinationState previous_destination_state_ {DestinationState::k_ok}
 
collector::MysqlCacheManagercache_
 
const bool is_dynamic_
 

Member Enumeration Documentation

◆ DestinationState

Enumerator
k_ok 
k_read_only 
k_offline 

Constructor & Destructor Documentation

◆ MetadataSourceDestination()

mrs::database::SchemaMonitor::MetadataSourceDestination::MetadataSourceDestination ( collector::MysqlCacheManager cache,
const bool  is_dynamic 
)
inline

Member Function Documentation

◆ get_rw_session()

std::optional< collector::MysqlCacheManager::CachedObject > mrs::database::SchemaMonitor::MetadataSourceDestination::get_rw_session ( )

◆ handle_error()

bool mrs::database::SchemaMonitor::MetadataSourceDestination::handle_error ( )

Member Data Documentation

◆ cache_

collector::MysqlCacheManager* mrs::database::SchemaMonitor::MetadataSourceDestination::cache_
private

◆ current_destination_state_

DestinationState mrs::database::SchemaMonitor::MetadataSourceDestination::current_destination_state_
private
Initial value:
{
DestinationState::k_read_only}

◆ is_dynamic_

const bool mrs::database::SchemaMonitor::MetadataSourceDestination::is_dynamic_
private

◆ previous_destination_state_

DestinationState mrs::database::SchemaMonitor::MetadataSourceDestination::previous_destination_state_ {DestinationState::k_ok}
private

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