Kagome
Polkadot Runtime Engine in C++17
|
#include <exposer_impl.hpp>
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< Context > | context_ |
const Configuration | config_ |
const Session::Configuration | session_config_ |
std::unique_ptr< Acceptor > | acceptor_ |
std::shared_ptr< Session > | new_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< Handler > | handler_ |
Definition at line 17 of file exposer_impl.hpp.
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.
|
overridedefault |
|
private |
Definition at line 79 of file exposer_impl.cpp.
|
overridevirtual |
prepare interface for AppStateManager
Implements kagome::metrics::Exposer.
Definition at line 26 of file exposer_impl.cpp.
|
overridevirtual |
start interface for AppStateManager
Implements kagome::metrics::Exposer.
Definition at line 52 of file exposer_impl.cpp.
|
overridevirtual |
stop interface for AppStateManager
Implements kagome::metrics::Exposer.
Definition at line 72 of file exposer_impl.cpp.
|
private |
Definition at line 40 of file exposer_impl.hpp.
|
private |
Definition at line 37 of file exposer_impl.hpp.
|
private |
Definition at line 36 of file exposer_impl.hpp.
|
private |
Definition at line 19 of file exposer_impl.hpp.
|
private |
Definition at line 42 of file exposer_impl.hpp.
|
private |
Definition at line 38 of file exposer_impl.hpp.
|
private |
Definition at line 44 of file exposer_impl.hpp.