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

Public Types

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

Public Member Functions

 StatsDGaugeImpl (std::string const &name, std::shared_ptr< StatsDCollectorImp > const &impl)
 
 ~StatsDGaugeImpl () override
 
void set (GaugeImpl::value_type value) override
 
void increment (GaugeImpl::difference_type amount) override
 
void flush ()
 
void do_set (GaugeImpl::value_type value)
 
void do_increment (GaugeImpl::difference_type amount)
 
void do_process () override
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 

Private Member Functions

StatsDGaugeImploperator= (StatsDGaugeImpl const &)
 

Private Attributes

std::shared_ptr< StatsDCollectorImpm_impl
 
std::string m_name
 
GaugeImpl::value_type m_last_value
 
GaugeImpl::value_type m_value
 
bool m_dirty
 

Detailed Description

Definition at line 146 of file StatsDCollector.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 34 of file GaugeImpl.h.

◆ difference_type

Definition at line 35 of file GaugeImpl.h.

Constructor & Destructor Documentation

◆ StatsDGaugeImpl()

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

Definition at line 594 of file StatsDCollector.cpp.

◆ ~StatsDGaugeImpl()

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

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

◆ increment()

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

Implements beast::insight::GaugeImpl.

Definition at line 617 of file StatsDCollector.cpp.

◆ flush()

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

Definition at line 626 of file StatsDCollector.cpp.

◆ do_set()

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

Definition at line 639 of file StatsDCollector.cpp.

◆ do_increment()

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

Definition at line 651 of file StatsDCollector.cpp.

◆ do_process()

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

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

Definition at line 675 of file StatsDCollector.cpp.

◆ operator=()

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

Member Data Documentation

◆ m_impl

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

Definition at line 173 of file StatsDCollector.cpp.

◆ m_name

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

Definition at line 174 of file StatsDCollector.cpp.

◆ m_last_value

GaugeImpl::value_type beast::insight::detail::StatsDGaugeImpl::m_last_value
private

Definition at line 175 of file StatsDCollector.cpp.

◆ m_value

GaugeImpl::value_type beast::insight::detail::StatsDGaugeImpl::m_value
private

Definition at line 176 of file StatsDCollector.cpp.

◆ m_dirty

bool beast::insight::detail::StatsDGaugeImpl::m_dirty
private

Definition at line 177 of file StatsDCollector.cpp.