xrpld
Loading...
Searching...
No Matches
beast::insight::detail::StatsDCounterImpl Class Reference
Inheritance diagram for beast::insight::detail::StatsDCounterImpl:
Collaboration diagram for beast::insight::detail::StatsDCounterImpl:

Public Types

using value_type = std::int64_t

Public Member Functions

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

Private Attributes

std::shared_ptr< StatsDCollectorImpimpl_
std::string name_
CounterImpl::value_type value_ {0}
bool dirty_ {false}
friend T
ListNodenext_ = nullptr
ListNodeprev_ = nullptr

Detailed Description

Definition at line 86 of file StatsDCollector.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 13 of file CounterImpl.h.

Constructor & Destructor Documentation

◆ StatsDCounterImpl()

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

Definition at line 500 of file StatsDCollector.cpp.

◆ ~StatsDCounterImpl()

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

Definition at line 506 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 512 of file StatsDCollector.cpp.

◆ flush()

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

Definition at line 523 of file StatsDCollector.cpp.

◆ doIncrement()

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

Definition at line 537 of file StatsDCollector.cpp.

◆ doProcess()

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

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

Definition at line 544 of file StatsDCollector.cpp.

◆ operator=()

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

Member Data Documentation

◆ impl_

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

Definition at line 107 of file StatsDCollector.cpp.

◆ name_

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

Definition at line 108 of file StatsDCollector.cpp.

◆ value_

CounterImpl::value_type beast::insight::detail::StatsDCounterImpl::value_ {0}
private

Definition at line 109 of file StatsDCollector.cpp.

◆ dirty_

bool beast::insight::detail::StatsDCounterImpl::dirty_ {false}
private

Definition at line 110 of file StatsDCollector.cpp.

◆ T

template<typename T, typename Tag>
friend beast::detail::ListNode< T, Tag >::T
privateinherited

Definition at line 42 of file List.h.

◆ next_

template<typename T, typename Tag>
ListNode* beast::detail::ListNode< T, Tag >::next_ = nullptr
privateinherited

Definition at line 48 of file List.h.

◆ prev_

template<typename T, typename Tag>
ListNode* beast::detail::ListNode< T, Tag >::prev_ = nullptr
privateinherited

Definition at line 49 of file List.h.