Kagome
Polkadot Runtime Engine in C++17
kagome::metrics::ExposerImpl Class Reference

#include <exposer_impl.hpp>

Inheritance diagram for kagome::metrics::ExposerImpl:
Collaboration diagram for kagome::metrics::ExposerImpl:

Public Member Functions

 ExposerImpl (const std::shared_ptr< application::AppStateManager > &app_state_manager, Exposer::Configuration exposer_config, Session::Configuration session_config)
 
 ~ExposerImpl () override=default
 
bool prepare () override
 prepare interface for AppStateManager More...
 
bool start () override
 start interface for AppStateManager More...
 
void stop () override
 stop interface for AppStateManager More...
 
- Public Member Functions inherited from kagome::metrics::Exposer
void setHandler (const std::shared_ptr< Handler > &handler)
 sets handler and takes ownership More...
 
virtual ~Exposer ()=default
 

Private Member Functions

void acceptOnce ()
 

Private Attributes

log::Logger logger_
 
std::shared_ptr< Contextcontext_
 
const Configuration config_
 
const Session::Configuration session_config_
 
std::unique_ptr< Acceptoracceptor_
 
std::shared_ptr< Sessionnew_session_
 
std::shared_ptr< std::thread > thread_
 

Additional Inherited Members

- Public Types inherited from kagome::metrics::Exposer
using Context = boost::asio::io_context
 
- Protected Types inherited from kagome::metrics::Exposer
using Acceptor = boost::asio::ip::tcp::acceptor
 
using Endpoint = boost::asio::ip::tcp::endpoint
 
- Protected Attributes inherited from kagome::metrics::Exposer
std::shared_ptr< Handlerhandler_
 

Detailed Description

Definition at line 17 of file exposer_impl.hpp.

Constructor & Destructor Documentation

kagome::metrics::ExposerImpl::ExposerImpl ( const std::shared_ptr< application::AppStateManager > &  app_state_manager,
Exposer::Configuration  exposer_config,
Session::Configuration  session_config 
)

Definition at line 14 of file exposer_impl.cpp.

kagome::metrics::ExposerImpl::~ExposerImpl ( )
overridedefault

Member Function Documentation

void kagome::metrics::ExposerImpl::acceptOnce ( )
private

Definition at line 79 of file exposer_impl.cpp.

bool kagome::metrics::ExposerImpl::prepare ( )
overridevirtual

prepare interface for AppStateManager

Implements kagome::metrics::Exposer.

Definition at line 26 of file exposer_impl.cpp.

bool kagome::metrics::ExposerImpl::start ( )
overridevirtual

start interface for AppStateManager

Implements kagome::metrics::Exposer.

Definition at line 52 of file exposer_impl.cpp.

void kagome::metrics::ExposerImpl::stop ( )
overridevirtual

stop interface for AppStateManager

Implements kagome::metrics::Exposer.

Definition at line 72 of file exposer_impl.cpp.

Member Data Documentation

std::unique_ptr<Acceptor> kagome::metrics::ExposerImpl::acceptor_
private

Definition at line 40 of file exposer_impl.hpp.

const Configuration kagome::metrics::ExposerImpl::config_
private

Definition at line 37 of file exposer_impl.hpp.

std::shared_ptr<Context> kagome::metrics::ExposerImpl::context_
private

Definition at line 36 of file exposer_impl.hpp.

log::Logger kagome::metrics::ExposerImpl::logger_
private

Definition at line 19 of file exposer_impl.hpp.

std::shared_ptr<Session> kagome::metrics::ExposerImpl::new_session_
private

Definition at line 42 of file exposer_impl.hpp.

const Session::Configuration kagome::metrics::ExposerImpl::session_config_
private

Definition at line 38 of file exposer_impl.hpp.

std::shared_ptr<std::thread> kagome::metrics::ExposerImpl::thread_
private

Definition at line 44 of file exposer_impl.hpp.


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