xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
app
main
CollectorManager.h
1
#pragma once
2
3
#include <xrpl/beast/insight/Collector.h>
4
#include <xrpl/beast/insight/Group.h>
5
#include <xrpl/beast/utility/Journal.h>
6
#include <xrpl/config/BasicConfig.h>
7
8
#include <
memory
>
9
#include <
string
>
10
11
namespace
xrpl
{
12
16
class
CollectorManager
17
{
18
public
:
19
virtual
~CollectorManager
() =
default
;
20
21
virtual
beast::insight::Collector::Ptr
const
&
22
collector
() = 0;
23
24
virtual
beast::insight::Group::Ptr
const
&
25
group
(
std::string
const
& name) = 0;
26
};
27
28
std::unique_ptr<CollectorManager>
29
makeCollectorManager
(
Section
const
& params,
beast::Journal
journal);
30
31
}
// namespace xrpl
std::string
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
beast::insight::Collector::Ptr
std::shared_ptr< Collector > Ptr
Definition
Collector.h:29
beast::insight::Group::Ptr
std::shared_ptr< Group > Ptr
Definition
Group.h:16
xrpl::CollectorManager
Provides the beast::insight::Collector service.
Definition
CollectorManager.h:17
xrpl::CollectorManager::collector
virtual beast::insight::Collector::Ptr const & collector()=0
xrpl::CollectorManager::~CollectorManager
virtual ~CollectorManager()=default
xrpl::CollectorManager::group
virtual beast::insight::Group::Ptr const & group(std::string const &name)=0
xrpl::Section
Holds a collection of configuration values.
Definition
BasicConfig.h:28
memory
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::makeCollectorManager
std::unique_ptr< CollectorManager > makeCollectorManager(Section const ¶ms, beast::Journal journal)
Definition
CollectorManager.cpp:65
string
std::unique_ptr
Generated by
1.17.0