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

Public Types

using value_type = std::uint64_t
 

Public Member Functions

 StatsDMeterImpl (std::string const &name, std::shared_ptr< StatsDCollectorImp > const &impl)
 
 ~StatsDMeterImpl () override
 
void increment (MeterImpl::value_type amount) override
 
void flush ()
 
void do_increment (MeterImpl::value_type amount)
 
void do_process () override
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 

Private Member Functions

StatsDMeterImploperator= (StatsDMeterImpl const &)
 

Private Attributes

std::shared_ptr< StatsDCollectorImpm_impl
 
std::string m_name
 
MeterImpl::value_type m_value
 
bool m_dirty
 

Detailed Description

Definition at line 182 of file StatsDCollector.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 34 of file MeterImpl.h.

Constructor & Destructor Documentation

◆ StatsDMeterImpl()

beast::insight::detail::StatsDMeterImpl::StatsDMeterImpl ( std::string const &  name,
std::shared_ptr< StatsDCollectorImp > const &  impl 
)
explicit

Definition at line 682 of file StatsDCollector.cpp.

◆ ~StatsDMeterImpl()

beast::insight::detail::StatsDMeterImpl::~StatsDMeterImpl ( )
override

Definition at line 690 of file StatsDCollector.cpp.

Member Function Documentation

◆ increment()

void beast::insight::detail::StatsDMeterImpl::increment ( MeterImpl::value_type  amount)
overridevirtual

Implements beast::insight::MeterImpl.

Definition at line 696 of file StatsDCollector.cpp.

◆ flush()

void beast::insight::detail::StatsDMeterImpl::flush ( )

Definition at line 705 of file StatsDCollector.cpp.

◆ do_increment()

void beast::insight::detail::StatsDMeterImpl::do_increment ( MeterImpl::value_type  amount)

Definition at line 719 of file StatsDCollector.cpp.

◆ do_process()

void beast::insight::detail::StatsDMeterImpl::do_process ( )
overridevirtual

Implements beast::insight::detail::StatsDMetricBase.

Definition at line 726 of file StatsDCollector.cpp.

◆ operator=()

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

Member Data Documentation

◆ m_impl

std::shared_ptr<StatsDCollectorImp> beast::insight::detail::StatsDMeterImpl::m_impl
private

Definition at line 205 of file StatsDCollector.cpp.

◆ m_name

std::string beast::insight::detail::StatsDMeterImpl::m_name
private

Definition at line 206 of file StatsDCollector.cpp.

◆ m_value

MeterImpl::value_type beast::insight::detail::StatsDMeterImpl::m_value
private

Definition at line 207 of file StatsDCollector.cpp.

◆ m_dirty

bool beast::insight::detail::StatsDMeterImpl::m_dirty
private

Definition at line 208 of file StatsDCollector.cpp.