MySQL 9.1.0
Source Code Documentation
mysql_harness::LogReopenComponent Class Reference

component that manages the reopening of logfiles. More...

#include <log_reopen_component.h>

Public Member Functions

 LogReopenComponent (LogReopenComponent const &)=delete
 
void operator= (LogReopenComponent const &)=delete
 
 LogReopenComponent (LogReopenComponent &&)=delete
 
void operator= (LogReopenComponent &&)=delete
 
void init ()
 initialize the log-component. More...
 
LogReopenoperator-> ()
 forwards pointer deref's to the log_reopen instance. More...
 
const LogReopenoperator-> () const
 forwards pointer deref's to the log_reopen instance. More...
 
 operator bool () const
 checks if the component is initialized. More...
 
void reset ()
 shutdown the log-component. More...
 

Static Public Member Functions

static LogReopenComponentget_instance ()
 

Private Member Functions

 LogReopenComponent ()=default
 

Private Attributes

std::unique_ptr< LogReopenlog_reopen_
 

Detailed Description

component that manages the reopening of logfiles.

depends on the logging-registry to have initialized all loggers.

As the loggers are plugins, init() must be called after the Loader started all the plugins which can be done by:

loader->after_all_started([](){
});
static Mysys_charset_loader * loader
Definition: charset.cc:185
void init()
initialize the log-component.
Definition: log_reopen_component.h:76
static LogReopenComponent & get_instance()
Definition: log_reopen_component.cc:30

The component should be shut down again after the plugins start to shutdown again.

loader->after_first_exit([](){
});
void reset()
shutdown the log-component.
Definition: log_reopen_component.h:96

Constructor & Destructor Documentation

◆ LogReopenComponent() [1/3]

mysql_harness::LogReopenComponent::LogReopenComponent ( LogReopenComponent const &  )
delete

◆ LogReopenComponent() [2/3]

mysql_harness::LogReopenComponent::LogReopenComponent ( LogReopenComponent &&  )
delete

◆ LogReopenComponent() [3/3]

mysql_harness::LogReopenComponent::LogReopenComponent ( )
privatedefault

Member Function Documentation

◆ get_instance()

LogReopenComponent & mysql_harness::LogReopenComponent::get_instance ( )
static

◆ init()

void mysql_harness::LogReopenComponent::init ( )
inline

initialize the log-component.

starts LogReopen thread.

◆ operator bool()

mysql_harness::LogReopenComponent::operator bool ( ) const
inline

checks if the component is initialized.

◆ operator->() [1/2]

LogReopen * mysql_harness::LogReopenComponent::operator-> ( )
inline

forwards pointer deref's to the log_reopen instance.

◆ operator->() [2/2]

const LogReopen * mysql_harness::LogReopenComponent::operator-> ( ) const
inline

forwards pointer deref's to the log_reopen instance.

◆ operator=() [1/2]

void mysql_harness::LogReopenComponent::operator= ( LogReopenComponent &&  )
delete

◆ operator=() [2/2]

void mysql_harness::LogReopenComponent::operator= ( LogReopenComponent const &  )
delete

◆ reset()

void mysql_harness::LogReopenComponent::reset ( )
inline

shutdown the log-component.

Member Data Documentation

◆ log_reopen_

std::unique_ptr<LogReopen> mysql_harness::LogReopenComponent::log_reopen_
private

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