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

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

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

Public Types

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

 RangeLoad (const Manager::Ranger::Ptr &rgr, const Manager::Column::Ptr &col, const Manager::Range::Ptr &range, const DB::Schema::Ptr &schema)
 
virtual ~RangeLoad () noexcept
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
bool valid () override
 
void handle_no_conn () override
 
void loaded (int err, bool failure, const DB::Cells::Interval &intval, int64_t revision)
 
- 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

Manager::Ranger::Ptr rgr
 
Manager::Column::Ptr col
 
Manager::Range::Ptr range
 
int64_t schema_revision
 

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 13 of file RangeLoad.h.

Member Typedef Documentation

◆ Ptr

Definition at line 15 of file RangeLoad.h.

Constructor & Destructor Documentation

◆ RangeLoad()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::RangeLoad::RangeLoad ( const Manager::Ranger::Ptr rgr,
const Manager::Column::Ptr col,
const Manager::Range::Ptr range,
const DB::Schema::Ptr schema 
)

Definition at line 14 of file RangeLoad.cc.

References SWC::LOG_INFO, range, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

◆ ~RangeLoad()

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

Definition at line 22 of file RangeLoad.h.

Member Function Documentation

◆ handle()

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

Implements SWC::Comm::DispatchHandler.

Definition at line 30 of file RangeLoad.cc.

References SWC::Error::Exception::code(), SWC::Comm::Serializable::decode(), handle_no_conn(), SWC::Comm::Protocol::Rgr::Params::RangeLoaded::interval, loaded(), SWC::LOG_ERROR, range, SWC::Comm::Protocol::Rgr::Params::RangeLoaded::revision, SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, SWC_LOG_OUT, and valid().

+ Here is the call graph for this function:

◆ handle_no_conn()

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

Implements SWC::Comm::DispatchHandler.

Definition at line 56 of file RangeLoad.cc.

References SWC::Error::COMM_NOT_CONNECTED, loaded(), and range.

Referenced by handle().

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

◆ loaded()

void SWC::Comm::Protocol::Rgr::Req::RangeLoad::loaded ( int  err,
bool  failure,
const DB::Cells::Interval intval,
int64_t  revision 
)

Definition at line 62 of file RangeLoad.cc.

References col, SWC::LOG_INFO, SWC::Error::print(), range, SWC::Manager::Rangers::range_loaded(), SWC::Env::Mngr::rangers(), rgr, schema_revision, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

Referenced by handle(), and handle_no_conn().

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

◆ valid()

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

Reimplemented from SWC::Comm::DispatchHandler.

Definition at line 51 of file RangeLoad.cc.

References 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:

Member Data Documentation

◆ col

Manager::Column::Ptr SWC::Comm::Protocol::Rgr::Req::RangeLoad::col
private

Definition at line 36 of file RangeLoad.h.

Referenced by loaded().

◆ range

Manager::Range::Ptr SWC::Comm::Protocol::Rgr::Req::RangeLoad::range
private

Definition at line 37 of file RangeLoad.h.

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

◆ rgr

Manager::Ranger::Ptr SWC::Comm::Protocol::Rgr::Req::RangeLoad::rgr
private

Definition at line 35 of file RangeLoad.h.

Referenced by loaded().

◆ schema_revision

int64_t SWC::Comm::Protocol::Rgr::Req::RangeLoad::schema_revision
private

Definition at line 38 of file RangeLoad.h.

Referenced by loaded().


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