rippled
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
beast::insight::detail::GroupImp Class Reference
Inheritance diagram for beast::insight::detail::GroupImp:
Inheritance graph
[legend]
Collaboration diagram for beast::insight::detail::GroupImp:
Collaboration graph
[legend]

Public Types

using ptr = std::shared_ptr< Group >
 

Public Member Functions

 GroupImp (std::string const &name_, Collector::ptr const &collector)
 
 ~GroupImp ()=default
 
std::string const & name () const override
 Returns the name of this group, for diagnostics. More...
 
std::string make_name (std::string const &name)
 
Hook make_hook (HookImpl::HandlerType const &handler) override
 
Counter make_counter (std::string const &name) override
 Create a counter with the specified name. More...
 
Event make_event (std::string const &name) override
 Create an event with the specified name. More...
 
Gauge make_gauge (std::string const &name) override
 Create a gauge with the specified name. More...
 
Meter make_meter (std::string const &name) override
 Create a meter with the specified name. More...
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 

Public Attributes

const std::string m_name
 
Collector::ptr m_collector
 

Private Member Functions

GroupImpoperator= (GroupImp const &)
 

Detailed Description

Definition at line 31 of file Groups.cpp.

Member Typedef Documentation

◆ ptr

Definition at line 35 of file Group.h.

Constructor & Destructor Documentation

◆ GroupImp()

beast::insight::detail::GroupImp::GroupImp ( std::string const &  name_,
Collector::ptr const &  collector 
)

Definition at line 37 of file Groups.cpp.

◆ ~GroupImp()

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

Member Function Documentation

◆ name()

std::string const& beast::insight::detail::GroupImp::name ( ) const
overridevirtual

Returns the name of this group, for diagnostics.

Implements beast::insight::Group.

Definition at line 45 of file Groups.cpp.

◆ make_name()

std::string beast::insight::detail::GroupImp::make_name ( std::string const &  name)

Definition at line 51 of file Groups.cpp.

◆ make_hook() [1/2]

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

Implements beast::insight::Collector.

Definition at line 57 of file Groups.cpp.

◆ make_counter() [1/2]

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

Create a counter with the specified name.

See also
Counter

Implements beast::insight::Collector.

Definition at line 63 of file Groups.cpp.

◆ make_event() [1/2]

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

Create an event with the specified name.

See also
Event

Implements beast::insight::Collector.

Definition at line 69 of file Groups.cpp.

◆ make_gauge() [1/2]

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

Create a gauge with the specified name.

See also
Gauge

Implements beast::insight::Collector.

Definition at line 75 of file Groups.cpp.

◆ make_meter() [1/2]

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

Create a meter with the specified name.

See also
Meter

Implements beast::insight::Collector.

Definition at line 81 of file Groups.cpp.

◆ operator=()

GroupImp& beast::insight::detail::GroupImp::operator= ( GroupImp const &  )
private

◆ 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.

Member Data Documentation

◆ m_name

const std::string beast::insight::detail::GroupImp::m_name

Definition at line 34 of file Groups.cpp.

◆ m_collector

Collector::ptr beast::insight::detail::GroupImp::m_collector

Definition at line 35 of file Groups.cpp.