SWC-DB  v0.5.9 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded Class Reference

#include <swcdb/manager/Protocol/Rgr/req/RangeIsLoaded.h>

+ Inheritance diagram for SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded:
+ Collaboration diagram for SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded:

Public Types

typedef std::shared_ptr< RangeIsLoadedPtr
 
- Public Types inherited from SWC::Comm::client::ConnQueueReqBase
typedef std::shared_ptr< ConnQueueReqBasePtr
 
- Public Types inherited from SWC::Comm::DispatchHandler
typedef std::shared_ptr< DispatchHandlerPtr
 

Public Member Functions

SWC_CAN_INLINE RangeIsLoaded (const Manager::ColumnHealthCheck::RangerCheck::Ptr &a_checker, const Manager::Range::Ptr &a_range, uint32_t timeout=60000)
 
virtual ~RangeIsLoaded () noexcept
 
bool valid () override
 
void handle_no_conn () override
 
void handle (ConnHandlerPtr, const Event::Ptr &ev) override
 
- Public Member Functions inherited from SWC::Comm::client::ConnQueueReqBase
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp) noexcept
 
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp, const ConnQueuePtr &a_queue) noexcept
 
SWC_CAN_INLINE Ptr req () noexcept
 
virtual bool insistent () noexcept
 
void request_again ()
 
void print (std::ostream &out)
 
- Public Member Functions inherited from SWC::Comm::DispatchHandler
virtual bool run ()
 

Public Attributes

const Manager::ColumnHealthCheck::RangerCheck::Ptr checker
 
const Manager::Range::Ptr range
 
- Public Attributes inherited from SWC::Comm::client::ConnQueueReqBase
Buffers::Ptr cbp
 
ConnQueuePtr queue
 

Additional Inherited Members

- Protected Member Functions inherited from SWC::Comm::client::ConnQueueReqBase
virtual ~ConnQueueReqBase () noexcept
 
- Protected Member Functions inherited from SWC::Comm::DispatchHandler
virtual ~DispatchHandler () noexcept
 

Detailed Description

Definition at line 16 of file RangeIsLoaded.h.

Member Typedef Documentation

◆ Ptr

Definition at line 18 of file RangeIsLoaded.h.

Constructor & Destructor Documentation

◆ RangeIsLoaded()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::RangeIsLoaded ( const Manager::ColumnHealthCheck::RangerCheck::Ptr a_checker,
const Manager::Range::Ptr a_range,
uint32_t  timeout = 60000 
)
inline

Definition at line 24 of file RangeIsLoaded.h.

◆ ~RangeIsLoaded()

virtual SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::~RangeIsLoaded ( )
inlinevirtualnoexcept

Definition at line 38 of file RangeIsLoaded.h.

Member Function Documentation

◆ handle()

void SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::handle ( ConnHandlerPtr  ,
const Event::Ptr ev 
)
inlineoverridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 50 of file RangeIsLoaded.h.

References checker, SWC::Error::Exception::code(), SWC::Comm::Serializable::decode(), SWC::Comm::Protocol::Rgr::Params::RangeIsLoadedRsp::err, SWC::Comm::Protocol::Rgr::Params::RangeIsLoadedRsp::flags, SWC::LOG_ERROR, range, SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

+ Here is the call graph for this function:

◆ handle_no_conn()

void SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::handle_no_conn ( )
inlineoverridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 46 of file RangeIsLoaded.h.

References checker, SWC::Error::COMM_CONNECT_ERROR, and range.

◆ valid()

bool SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::valid ( )
inlineoverridevirtual

Reimplemented from SWC::Comm::DispatchHandler.

Definition at line 40 of file RangeIsLoaded.h.

References SWC::DB::Types::MngrRangerState::ACK, checker, range, SWC::Env::Mngr::rangers(), and SWC::Manager::Rangers::running().

+ Here is the call graph for this function:

Member Data Documentation

◆ checker

const Manager::ColumnHealthCheck::RangerCheck::Ptr SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::checker

Definition at line 20 of file RangeIsLoaded.h.

Referenced by handle(), handle_no_conn(), and valid().

◆ range

const Manager::Range::Ptr SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded::range

Definition at line 21 of file RangeIsLoaded.h.

Referenced by handle(), handle_no_conn(), and valid().


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