rippled
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. More...
 
Event make_event (std::string const &) override
 Create an event with the specified name. More...
 
Gauge make_gauge (std::string const &) override
 Create a gauge with the specified name. More...
 
Meter make_meter (std::string const &) override
 Create a meter with the specified name. More...
 

Static Public Member Functions

static std::shared_ptr< CollectorNew ()
 

Detailed Description

Definition at line 108 of file NullCollector.cpp.

Member Typedef Documentation

◆ ptr

Definition at line 47 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 117 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 123 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 129 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 135 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 141 of file NullCollector.cpp.

◆ New()

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

Definition at line 152 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 66 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 83 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 99 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 115 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 131 of file Collector.h.