MySQL 9.1.0
Source Code Documentation
metadata_cache::LogSuppressor Class Reference

#include <log_suppressor.h>

Public Types

enum class  MessageId {
  kDisconnectExistingSessionsWhenHidden , kHidden , kIncompatibleInstanceType , kInstanceType ,
  kReadOnlyTargets , kUnreachableQuorumAllowedTraffic , kDeprecatedMetadataVersion
}
 

Public Member Functions

void log_message (const MessageId id, const std::string &uuid, const std::string &message, bool invalid_condition, mysql_harness::logging::LogLevel invalid_condition_level=mysql_harness::logging::LogLevel::kWarning, mysql_harness::logging::LogLevel valid_condition_level=mysql_harness::logging::LogLevel::kWarning, const bool log_initial_valid=false)
 
 ~LogSuppressor ()
 

Static Public Member Functions

static LogSuppressorinstance ()
 

Private Types

using MessageKey = std::pair< std::string, MessageId >
 

Private Member Functions

 LogSuppressor ()=default
 
 LogSuppressor (const LogSuppressor &)=delete
 
LogSuppressoroperator= (const LogSuppressor &)=delete
 

Private Attributes

std::map< MessageKey, std::string > messages_
 

Member Typedef Documentation

◆ MessageKey

using metadata_cache::LogSuppressor::MessageKey = std::pair<std::string, MessageId>
private

Member Enumeration Documentation

◆ MessageId

Enumerator
kDisconnectExistingSessionsWhenHidden 
kHidden 
kIncompatibleInstanceType 
kInstanceType 
kReadOnlyTargets 
kUnreachableQuorumAllowedTraffic 
kDeprecatedMetadataVersion 

Constructor & Destructor Documentation

◆ ~LogSuppressor()

metadata_cache::LogSuppressor::~LogSuppressor ( )
default

◆ LogSuppressor() [1/2]

metadata_cache::LogSuppressor::LogSuppressor ( )
privatedefault

◆ LogSuppressor() [2/2]

metadata_cache::LogSuppressor::LogSuppressor ( const LogSuppressor )
privatedelete

Member Function Documentation

◆ instance()

static LogSuppressor & metadata_cache::LogSuppressor::instance ( )
inlinestatic

◆ log_message()

void metadata_cache::LogSuppressor::log_message ( const MessageId  id,
const std::string &  uuid,
const std::string &  message,
bool  invalid_condition,
mysql_harness::logging::LogLevel  invalid_condition_level = mysql_harness::logging::LogLevel::kWarning,
mysql_harness::logging::LogLevel  valid_condition_level = mysql_harness::logging::LogLevel::kWarning,
const bool  log_initial_valid = false 
)

◆ operator=()

LogSuppressor & metadata_cache::LogSuppressor::operator= ( const LogSuppressor )
privatedelete

Member Data Documentation

◆ messages_

std::map<MessageKey, std::string> metadata_cache::LogSuppressor::messages_
private

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