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::Managers Class Reference

#include <swcdb/db/client/service/mngr/Managers.h>

+ Collaboration diagram for SWC::client::Managers:

Classes

class  MasterRangesCache
 

Public Member Functions

SWC_CAN_INLINE Managers () noexcept
 
 Managers (const Config::Settings &settings, Comm::IoContextPtr ioctx, const ContextManager::Ptr &mngr_ctx)
 
SWC_CAN_INLINE ~Managers () noexcept
 
bool put (const ClientsPtr &clients, const cid_t &cid, Comm::EndPoints &endpoints, const Comm::client::ConnQueue::ReqBase::Ptr &req)
 
bool put_role_schemas (const ClientsPtr &clients, Comm::EndPoints &endpoints, const Comm::client::ConnQueue::ReqBase::Ptr &req)
 

Public Attributes

const Comm::client::ConnQueuesPtr queues
 
const Mngr::Groups::Ptr groups
 
MasterRangesCache master_ranges_cache
 

Detailed Description

Definition at line 22 of file Managers.h.

Constructor & Destructor Documentation

◆ Managers() [1/2]

SWC_CAN_INLINE SWC::client::Managers::Managers ( )
inlinenoexcept

Definition at line 208 of file Managers.h.

◆ Managers() [2/2]

SWC::client::Managers::Managers ( const Config::Settings settings,
Comm::IoContextPtr  ioctx,
const ContextManager::Ptr mngr_ctx 
)

Definition at line 15 of file Managers.cc.

◆ ~Managers()

SWC_CAN_INLINE SWC::client::Managers::~Managers ( )
inlinenoexcept

Definition at line 217 of file Managers.h.

Member Function Documentation

◆ put()

bool SWC::client::Managers::put ( const ClientsPtr clients,
const cid_t cid,
Comm::EndPoints endpoints,
const Comm::client::ConnQueue::ReqBase::Ptr req 
)

Definition at line 40 of file Managers.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), groups, SWC::Comm::Protocol::Mngr::Req::MngrActive::make(), and queues.

+ Here is the call graph for this function:

◆ put_role_schemas()

bool SWC::client::Managers::put_role_schemas ( const ClientsPtr clients,
Comm::EndPoints endpoints,
const Comm::client::ConnQueue::ReqBase::Ptr req 
)

Definition at line 59 of file Managers.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), groups, SWC::Comm::Protocol::Mngr::Req::MngrActive::make(), queues, and SWC::DB::Types::MngrRole::SCHEMAS.

+ Here is the call graph for this function:

Member Data Documentation

◆ groups

const Mngr::Groups::Ptr SWC::client::Managers::groups

◆ master_ranges_cache

◆ queues


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