SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::client::Query::Update::Handlers::Metric::Item_CountVolume Class Reference

#include <swcdb/db/client/Query/Update/Handlers/Metrics.h>

+ Inheritance diagram for SWC::client::Query::Update::Handlers::Metric::Item_CountVolume:
+ Collaboration diagram for SWC::client::Query::Update::Handlers::Metric::Item_CountVolume:

Public Types

typedef std::unique_ptr< Item_CountVolumePtr
- Public Types inherited from SWC::client::Query::Update::Handlers::Metric::Base
typedef std::unique_ptr< BasePtr

Public Member Functions

 Item_CountVolume (const char *a_name)
virtual ~Item_CountVolume () noexcept
SWC_CAN_INLINE void increment () noexcept
SWC_CAN_INLINE void decrement () noexcept
virtual void report (uint64_t for_ns, Handlers::Base::Column *colp, const DB::Cell::KeyVec &parent_key) override
virtual void reset () override
- Public Member Functions inherited from SWC::client::Query::Update::Handlers::Metric::Base
virtual ~Base () noexcept
virtual void definitions (Handlers::Base::Column *colp, const DB::Cell::KeyVec &parent_key)=0
virtual Levelget_level (const char *, bool)

Public Attributes

const std::string name

Protected Attributes

Core::Atomic< uint64_t > m_count
Core::Atomic< uint64_t > m_volume

Detailed Description

Definition at line 193 of file Metrics.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ Item_CountVolume()

SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::Item_CountVolume ( const char *  a_name)

Definition at line 199 of file Metrics.h.

◆ ~Item_CountVolume()

virtual SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::~Item_CountVolume ( )

Definition at line 202 of file Metrics.h.

Member Function Documentation

◆ decrement()

SWC_CAN_INLINE void SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::decrement ( )

Definition at line 211 of file Metrics.h.

References SWC::Core::Atomic< T, OrderT >::fetch_sub(), and m_volume.

+ Here is the call graph for this function:

◆ increment()

SWC_CAN_INLINE void SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::increment ( )

Definition at line 205 of file Metrics.h.

References SWC::Core::Atomic< T, OrderT >::fetch_add(), m_count, and m_volume.

+ Here is the call graph for this function:

◆ report()

◆ reset()

virtual void SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::reset ( )

Implements SWC::client::Query::Update::Handlers::Metric::Base.

Definition at line 218 of file Metrics.h.

References m_count, m_volume, and SWC::Core::AtomicBase< T, OrderT >::store().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_count

Core::Atomic<uint64_t> SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::m_count

Definition at line 224 of file Metrics.h.

Referenced by increment(), report(), and reset().

◆ m_volume

Core::Atomic<uint64_t> SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::m_volume

Definition at line 225 of file Metrics.h.

Referenced by decrement(), increment(), report(), and reset().

◆ name

const std::string SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::name

Definition at line 197 of file Metrics.h.

Referenced by SWC::FsBroker::Metric::Item_Fds::definitions(), and report().

The documentation for this class was generated from the following files: