SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
RangeUnload.h
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 #ifndef swcdb_manager_Protocol_rgr_req_RangeUnload_h
7 #define swcdb_manager_Protocol_rgr_req_RangeUnload_h
8 
9 
10 
11 namespace SWC { namespace Comm { namespace Protocol {
12 namespace Rgr { namespace Req {
13 
14 
16  public:
17  typedef std::shared_ptr<RangeUnload> Ptr;
18 
22  bool ignore_error=false,
23  uint32_t timeout=60000);
24 
25  virtual ~RangeUnload() noexcept { }
26 
27  bool valid() override;
28 
29  void handle(ConnHandlerPtr conn, const Event::Ptr& ev) override;
30 
31  void handle_no_conn() override;
32 
33  void unloaded(int err);
34 
35  private:
36 
41 
42 };
43 
44 }}}}}
45 
46 #endif // swcdb_manager_Protocol_rgr_req_RangeUnload_h
SWC::Comm::client::ConnQueueReqBase
Definition: ClientConnQueue.h:22
SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle_no_conn
void handle_no_conn() override
Definition: RangeUnload.cc:37
SWC::Comm::Protocol::Rgr::Req::RangeUnload::range
const Manager::Range::Ptr range
Definition: RangeUnload.h:39
SWC::Manager::Range::Ptr
std::shared_ptr< Range > Ptr
Definition: Range.h:24
SWC::Comm::Protocol::Rgr::Req::RangeUnload::handle
void handle(ConnHandlerPtr conn, const Event::Ptr &ev) override
Definition: RangeUnload.cc:41
SWC::Comm::Protocol::Rgr::Req::RangeUnload::~RangeUnload
virtual ~RangeUnload() noexcept
Definition: RangeUnload.h:25
SWC::Comm::Protocol::Rgr::Req::RangeUnload::col
const Manager::Column::Ptr col
Definition: RangeUnload.h:38
SWC::Comm::Protocol::Rgr::Req::RangeUnload::valid
bool valid() override
Definition: RangeUnload.cc:31
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Manager::Ranger::Ptr
std::shared_ptr< Ranger > Ptr
Definition: Ranger.h:21
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition: AppContext.h:17
SWC::Comm::Protocol::Rgr::Req::RangeUnload::rgr
const Manager::Ranger::Ptr rgr
Definition: RangeUnload.h:37
SWC::Comm::Protocol::Rgr::Req::RangeUnload::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: RangeUnload.cc:15
SWC::Comm::Protocol::Rgr::Req::RangeUnload::unloaded
void unloaded(int err)
Definition: RangeUnload.cc:61
SWC::Manager::Column::Ptr
std::shared_ptr< Column > Ptr
Definition: Column.h:24
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition: Event.h:33
SWC::Comm::Protocol::Rgr::Req::RangeUnload
Definition: RangeUnload.h:15
SWC::Comm::Protocol::Rgr::Req::RangeUnload::ignore_error
bool ignore_error
Definition: RangeUnload.h:40
SWC::Comm::Protocol::Rgr::Req::RangeUnload::Ptr
std::shared_ptr< RangeUnload > Ptr
Definition: RangeUnload.h:17