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

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

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

Public Types

typedef std::shared_ptr< RangeUnloadPtr
 
typedef std::shared_ptr< RangeUnloadPtr
 
- 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

 RangeUnload (const Manager::Ranger::Ptr &rgr, const Manager::Column::Ptr &col, const Manager::Range::Ptr &range, bool ignore_error=false, uint32_t timeout=60000)
 
virtual ~RangeUnload () noexcept
 
bool valid () override
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
void handle_no_conn () override
 
void unloaded (int err)
 
 RangeUnload (const Ranger::RangePtr &range, const Ranger::Callback::RangeLoad::Ptr &req, uint32_t timeout=60000)
 
virtual ~RangeUnload () noexcept
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
bool valid () override
 
void handle_no_conn () override
 
void unloaded (int err)
 
- 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 ()
 

Private Attributes

const Manager::Ranger::Ptr rgr
 
const Manager::Column::Ptr col
 
const Manager::Range::Ptr range
 
bool ignore_error
 
Ranger::Callback::RangeLoad::Ptr req
 
Ranger::RangePtr range
 

Additional Inherited Members

- Public Attributes inherited from SWC::Comm::client::ConnQueueReqBase
Buffers::Ptr cbp
 
ConnQueuePtr queue
 
- 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 15 of file RangeUnload.h.

Member Typedef Documentation

◆ Ptr [1/2]

Definition at line 17 of file RangeUnload.h.

◆ Ptr [2/2]

Definition at line 17 of file RangeUnload.h.

Constructor & Destructor Documentation

◆ RangeUnload() [1/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::RangeUnload::RangeUnload ( const Manager::Ranger::Ptr rgr,
const Manager::Column::Ptr col,
const Manager::Range::Ptr range,
bool  ignore_error = false,
uint32_t  timeout = 60000 
)

Definition at line 15 of file RangeUnload.cc.

◆ ~RangeUnload() [1/2]

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

Definition at line 25 of file RangeUnload.h.

◆ RangeUnload() [2/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::RangeUnload::RangeUnload ( const Ranger::RangePtr range,
const Ranger::Callback::RangeLoad::Ptr req,
uint32_t  timeout = 60000 
)

Definition at line 17 of file RangeUnload.cc.

◆ ~RangeUnload() [2/2]

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

Definition at line 23 of file RangeUnload.h.

Member Function Documentation

◆ handle() [1/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 41 of file RangeUnload.cc.

References SWC::Error::Exception::code(), SWC::Comm::Serializable::decode(), SWC::Comm::Protocol::Rgr::Params::RangeUnloadRsp::err, SWC::LOG_ERROR, SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, SWC_LOG_OUT, unloaded(), and valid().

+ Here is the call graph for this function:

◆ handle() [2/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
overridevirtual

◆ handle_no_conn() [1/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle_no_conn ( )
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 37 of file RangeUnload.cc.

References SWC::Error::COMM_NOT_CONNECTED, and unloaded().

+ Here is the call graph for this function:

◆ handle_no_conn() [2/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle_no_conn ( )
overridevirtual

◆ unloaded() [1/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::unloaded ( int  err)

Definition at line 61 of file RangeUnload.cc.

References SWC::Manager::Rangers::assign_ranges(), col, ignore_error, range, SWC::Env::Mngr::rangers(), and rgr.

Referenced by handle(), and handle_no_conn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unloaded() [2/2]

void SWC::Comm::Protocol::Rgr::Req::RangeUnload::unloaded ( int  err)

◆ valid() [1/2]

bool SWC::Comm::Protocol::Rgr::Req::RangeUnload::valid ( )
overridevirtual

Reimplemented from SWC::Comm::DispatchHandler.

Definition at line 31 of file RangeUnload.cc.

References col, SWC::DB::Types::MngrColumn::DELETED, range, SWC::Env::Mngr::rangers(), and SWC::Manager::Rangers::running().

Referenced by handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valid() [2/2]

bool SWC::Comm::Protocol::Rgr::Req::RangeUnload::valid ( )
overridevirtual

Reimplemented from SWC::Comm::DispatchHandler.

Member Data Documentation

◆ col

const Manager::Column::Ptr SWC::Comm::Protocol::Rgr::Req::RangeUnload::col
private

Definition at line 38 of file RangeUnload.h.

Referenced by unloaded(), and valid().

◆ ignore_error

bool SWC::Comm::Protocol::Rgr::Req::RangeUnload::ignore_error
private

Definition at line 40 of file RangeUnload.h.

Referenced by unloaded().

◆ range [1/2]

const Manager::Range::Ptr SWC::Comm::Protocol::Rgr::Req::RangeUnload::range
private

Definition at line 39 of file RangeUnload.h.

Referenced by unloaded(), and valid().

◆ range [2/2]

Ranger::RangePtr SWC::Comm::Protocol::Rgr::Req::RangeUnload::range
private

Definition at line 36 of file RangeUnload.h.

◆ req

Ranger::Callback::RangeLoad::Ptr SWC::Comm::Protocol::Rgr::Req::RangeUnload::req
private

Definition at line 35 of file RangeUnload.h.

◆ rgr

const Manager::Ranger::Ptr SWC::Comm::Protocol::Rgr::Req::RangeUnload::rgr
private

Definition at line 37 of file RangeUnload.h.

Referenced by unloaded().


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