#include <swcdb/manager/Ranger.h>
Public Types | |
typedef std::shared_ptr< Ranger > | Ptr |
Public Member Functions | |
SWC_CAN_INLINE | Ranger (rgrid_t a_rgrid, const Comm::EndPoints &a_endpoints) |
SWC_CAN_INLINE | Ranger (const uint8_t **bufp, size_t *remainp) |
SWC_CAN_INLINE | Ranger (const Ranger &other, const Comm::EndPoints &a_endpoints) |
~Ranger () noexcept | |
void | print (std::ostream &out) const |
size_t | encoded_length () const noexcept |
void | encode (uint8_t **bufp) const |
SWC_CAN_INLINE void | init_queue () |
SWC_CAN_INLINE void | put (const Comm::client::ConnQueue::ReqBase::Ptr &req) |
void | stop () |
SWC_CAN_INLINE void | rebalance (uint8_t num) |
SWC_CAN_INLINE uint8_t | rebalance () const |
SWC_CAN_INLINE bool | can_rebalance () |
Public Attributes | |
Core::Atomic< rgrid_t > | rgrid |
Comm::EndPoints | endpoints |
Core::Atomic< size_t > | interm_ranges |
Core::Atomic< int16_t > | failures |
Core::Atomic< uint16_t > | load_scale |
Core::Atomic< uint8_t > | state |
Private Attributes | |
Core::MutexAtomic | m_mutex |
uint8_t | m_rebalance |
Comm::client::Host::Ptr | m_queue |
typedef std::shared_ptr<Ranger> SWC::Manager::Ranger::Ptr |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 120 of file Ranger.h.
References m_mutex, and m_rebalance.
|
inline |
Definition at line 85 of file Ranger.h.
References SWC::Serialization::encode(), SWC::Serialization::encode_i16(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi64(), endpoints, SWC::Core::AtomicBase< T, OrderT >::load(), load_scale, rebalance(), rgrid, and state.
|
inlinenoexcept |
Definition at line 78 of file Ranger.h.
References SWC::Serialization::encoded_length(), SWC::Serialization::encoded_length_vi64(), endpoints, SWC::Core::AtomicBase< T, OrderT >::load(), and rgrid.
|
inline |
Definition at line 94 of file Ranger.h.
References endpoints, SWC::Env::Clients::get(), and m_queue.
|
inline |
Definition at line 65 of file Ranger.h.
References endpoints, failures, interm_ranges, SWC::Core::AtomicBase< T, OrderT >::load(), load_scale, m_queue, SWC::Comm::print(), rebalance(), rgrid, state, and SWC::Core::to_string().
|
inline |
|
inline |
|
inline |
Definition at line 108 of file Ranger.h.
References m_mutex, and m_rebalance.
|
inline |
Comm::EndPoints SWC::Manager::Ranger::endpoints |
Definition at line 131 of file Ranger.h.
Referenced by encode(), encoded_length(), init_queue(), and print().
Core::Atomic<int16_t> SWC::Manager::Ranger::failures |
Core::Atomic<size_t> SWC::Manager::Ranger::interm_ranges |
Core::Atomic<uint16_t> SWC::Manager::Ranger::load_scale |
|
mutableprivate |
Definition at line 140 of file Ranger.h.
Referenced by can_rebalance(), and rebalance().
|
private |
|
private |
Definition at line 141 of file Ranger.h.
Referenced by can_rebalance(), and rebalance().
Core::Atomic<rgrid_t> SWC::Manager::Ranger::rgrid |
Definition at line 130 of file Ranger.h.
Referenced by encode(), encoded_length(), and print().
Core::Atomic<uint8_t> SWC::Manager::Ranger::state |