rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
beast::insight::detail::NullCollectorImp Class Reference
Inheritance diagram for beast::insight::detail::NullCollectorImp:
Inheritance graph
[legend]
Collaboration diagram for beast::insight::detail::NullCollectorImp:
Collaboration graph
[legend]

Public Types

using ptr = std::shared_ptr< Collector >
 

Public Member Functions

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

Static Public Member Functions

static std::shared_ptr< CollectorNew ()
 

Detailed Description

Definition at line 107 of file NullCollector.cpp.

Member Typedef Documentation

◆ ptr

Definition at line 28 of file Collector.h.

Constructor & Destructor Documentation

◆ NullCollectorImp()

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

◆ ~NullCollectorImp()

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

Member Function Documentation

◆ make_hook() [1/2]

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

Implements beast::insight::Collector.

Definition at line 116 of file NullCollector.cpp.

◆ make_counter() [1/2]

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

Create a counter with the specified name.

See also
Counter

Implements beast::insight::Collector.

Definition at line 122 of file NullCollector.cpp.

◆ make_event() [1/2]

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

Create an event with the specified name.

See also
Event

Implements beast::insight::Collector.

Definition at line 128 of file NullCollector.cpp.

◆ make_gauge() [1/2]

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

Create a gauge with the specified name.

See also
Gauge

Implements beast::insight::Collector.

Definition at line 134 of file NullCollector.cpp.

◆ make_meter() [1/2]

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

Create a meter with the specified name.

See also
Meter

Implements beast::insight::Collector.

Definition at line 140 of file NullCollector.cpp.

◆ New()

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

Definition at line 151 of file NullCollector.cpp.

◆ make_hook() [2/2]

template<class Handler >
Hook beast::insight::Collector::make_hook ( 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 47 of file Collector.h.

◆ make_counter() [2/2]

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

Definition at line 64 of file Collector.h.

◆ make_event() [2/2]

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

Definition at line 80 of file Collector.h.

◆ make_gauge() [2/2]

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

Definition at line 96 of file Collector.h.

◆ make_meter() [2/2]

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

Definition at line 112 of file Collector.h.