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

Public Types

using value_type = std::uint64_t
using difference_type = std::int64_t

Public Member Functions

 StatsDGaugeImpl (std::string name, std::shared_ptr< StatsDCollectorImp > impl)
 ~StatsDGaugeImpl () override
void set (GaugeImpl::value_type value) override
void increment (GaugeImpl::difference_type amount) override
void flush ()
void doSet (GaugeImpl::value_type value)
void doIncrement (GaugeImpl::difference_type amount)
void doProcess () override
StatsDGaugeImploperator= (StatsDGaugeImpl const &)=delete
T shared_from_this (T... args)
T weak_from_this (T... args)

Private Attributes

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

Detailed Description

Definition at line 140 of file StatsDCollector.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 13 of file GaugeImpl.h.

◆ difference_type

Definition at line 14 of file GaugeImpl.h.

Constructor & Destructor Documentation

◆ StatsDGaugeImpl()

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

Definition at line 578 of file StatsDCollector.cpp.

◆ ~StatsDGaugeImpl()

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

Definition at line 584 of file StatsDCollector.cpp.

Member Function Documentation

◆ set()

void beast::insight::detail::StatsDGaugeImpl::set ( GaugeImpl::value_type value)
overridevirtual

Implements beast::insight::GaugeImpl.

Definition at line 590 of file StatsDCollector.cpp.

◆ increment()

void beast::insight::detail::StatsDGaugeImpl::increment ( GaugeImpl::difference_type amount)
overridevirtual

Implements beast::insight::GaugeImpl.

Definition at line 601 of file StatsDCollector.cpp.

◆ flush()

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

Definition at line 612 of file StatsDCollector.cpp.

◆ doSet()

void beast::insight::detail::StatsDGaugeImpl::doSet ( GaugeImpl::value_type value)

Definition at line 625 of file StatsDCollector.cpp.

◆ doIncrement()

void beast::insight::detail::StatsDGaugeImpl::doIncrement ( GaugeImpl::difference_type amount)

Definition at line 637 of file StatsDCollector.cpp.

◆ doProcess()

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

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

Definition at line 658 of file StatsDCollector.cpp.

◆ operator=()

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

Member Data Documentation

◆ impl_

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

Definition at line 165 of file StatsDCollector.cpp.

◆ name_

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

Definition at line 166 of file StatsDCollector.cpp.

◆ lastValue_

GaugeImpl::value_type beast::insight::detail::StatsDGaugeImpl::lastValue_ {0}
private

Definition at line 167 of file StatsDCollector.cpp.

◆ value_

GaugeImpl::value_type beast::insight::detail::StatsDGaugeImpl::value_ {0}
private

Definition at line 168 of file StatsDCollector.cpp.

◆ dirty_

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

Definition at line 169 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.