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

Public Types

using value_type = std::int64_t
 

Public Member Functions

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

Private Member Functions

StatsDCounterImploperator= (StatsDCounterImpl const &)
 

Private Attributes

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

Detailed Description

Definition at line 88 of file StatsDCollector.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 34 of file CounterImpl.h.

Constructor & Destructor Documentation

◆ StatsDCounterImpl()

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

Definition at line 516 of file StatsDCollector.cpp.

◆ ~StatsDCounterImpl()

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

Definition at line 524 of file StatsDCollector.cpp.

Member Function Documentation

◆ increment()

void beast::insight::detail::StatsDCounterImpl::increment ( CounterImpl::value_type  amount)
overridevirtual

Implements beast::insight::CounterImpl.

Definition at line 530 of file StatsDCollector.cpp.

◆ flush()

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

Definition at line 539 of file StatsDCollector.cpp.

◆ do_increment()

void beast::insight::detail::StatsDCounterImpl::do_increment ( CounterImpl::value_type  amount)

Definition at line 553 of file StatsDCollector.cpp.

◆ do_process()

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

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

Definition at line 560 of file StatsDCollector.cpp.

◆ operator=()

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

Member Data Documentation

◆ m_impl

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

Definition at line 111 of file StatsDCollector.cpp.

◆ m_name

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

Definition at line 112 of file StatsDCollector.cpp.

◆ m_value

CounterImpl::value_type beast::insight::detail::StatsDCounterImpl::m_value
private

Definition at line 113 of file StatsDCollector.cpp.

◆ m_dirty

bool beast::insight::detail::StatsDCounterImpl::m_dirty
private

Definition at line 114 of file StatsDCollector.cpp.