xrpld
Loading...
Searching...
No Matches
beast::insight::detail::NullCollectorImp Class Reference
Inheritance diagram for beast::insight::detail::NullCollectorImp:
Collaboration diagram for beast::insight::detail::NullCollectorImp:

Public Types

using ptr = std::shared_ptr<Collector>

Public Member Functions

 NullCollectorImp ()=default
 ~NullCollectorImp () override=default
Hook makeHook (HookImpl::HandlerType const &) override
Counter makeCounter (std::string const &) override
 Create a counter with the specified name.
Event makeEvent (std::string const &) override
 Create an event with the specified name.
Gauge makeGauge (std::string const &) override
 Create a gauge with the specified name.
Meter makeMeter (std::string const &) override
 Create a meter with the specified name.
template<class Handler>
Hook makeHook (Handler handler)
 Create a hook.
Counter makeCounter (std::string const &prefix, std::string const &name)
Event makeEvent (std::string const &prefix, std::string const &name)
Gauge makeGauge (std::string const &prefix, std::string const &name)
Meter makeMeter (std::string const &prefix, std::string const &name)

Static Public Member Functions

static std::shared_ptr< Collectormake ()

Detailed Description

Definition at line 102 of file NullCollector.cpp.

Member Typedef Documentation

◆ ptr

Definition at line 26 of file Collector.h.

Constructor & Destructor Documentation

◆ NullCollectorImp()

beast::insight::detail::NullCollectorImp::NullCollectorImp ( )
default

◆ ~NullCollectorImp()

beast::insight::detail::NullCollectorImp::~NullCollectorImp ( )
overridedefault

Member Function Documentation

◆ makeHook() [1/2]

Hook beast::insight::detail::NullCollectorImp::makeHook ( HookImpl::HandlerType const & )
overridevirtual

Implements beast::insight::Collector.

Definition at line 111 of file NullCollector.cpp.

◆ makeCounter() [1/2]

Counter beast::insight::detail::NullCollectorImp::makeCounter ( std::string const & name)
overridevirtual

Create a counter with the specified name.

See also
Counter

Implements beast::insight::Collector.

Definition at line 117 of file NullCollector.cpp.

◆ makeEvent() [1/2]

Event beast::insight::detail::NullCollectorImp::makeEvent ( std::string const & name)
overridevirtual

Create an event with the specified name.

See also
Event

Implements beast::insight::Collector.

Definition at line 123 of file NullCollector.cpp.

◆ makeGauge() [1/2]

Gauge beast::insight::detail::NullCollectorImp::makeGauge ( std::string const & name)
overridevirtual

Create a gauge with the specified name.

See also
Gauge

Implements beast::insight::Collector.

Definition at line 129 of file NullCollector.cpp.

◆ makeMeter() [1/2]

Meter beast::insight::detail::NullCollectorImp::makeMeter ( std::string const & name)
overridevirtual

Create a meter with the specified name.

See also
Meter

Implements beast::insight::Collector.

Definition at line 135 of file NullCollector.cpp.

◆ make()

std::shared_ptr< Collector > beast::insight::NullCollector::make ( )
staticinherited

Definition at line 146 of file NullCollector.cpp.

◆ makeHook() [2/2]

template<class Handler>
Hook beast::insight::Collector::makeHook ( Handler handler)
inherited

Create a hook.

A hook is called at each collection interval, on an implementation defined thread. This is a convenience facility for gathering metrics in the polling style. The typical usage is to update all the metrics of interest in the handler.

Handler will be called with this signature: void handler (void)

See also
Hook

Definition at line 45 of file Collector.h.

◆ makeCounter() [2/2]

Counter beast::insight::Collector::makeCounter ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 62 of file Collector.h.

◆ makeEvent() [2/2]

Event beast::insight::Collector::makeEvent ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 78 of file Collector.h.

◆ makeGauge() [2/2]

Gauge beast::insight::Collector::makeGauge ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 94 of file Collector.h.

◆ makeMeter() [2/2]

Meter beast::insight::Collector::makeMeter ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 110 of file Collector.h.