SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ColumnMng_Base.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_db_protocol_mngr_req_ColumnMng_Base_h
7 #define swcdb_db_protocol_mngr_req_ColumnMng_Base_h
8 
9 
13 
14 
15 namespace SWC { namespace Comm { namespace Protocol {
16 namespace Mngr { namespace Req {
17 
18 
20  public:
21 
24  const uint32_t timeout)
25  : client::ConnQueue::ReqBase(
26  Buffers::make(params, 0, COLUMN_MNG, timeout)),
27  endpoints() {
28  }
29 
30  virtual ~ColumnMng_Base() noexcept { }
31 
32  void handle_no_conn() override;
33 
34  bool run() override {
35  return get_clients()->managers.put_role_schemas(
36  get_clients(), endpoints, req());
37  }
38 
39  protected:
40 
41  virtual SWC::client::Clients::Ptr& get_clients() noexcept = 0;
42 
43  virtual void callback(int error) = 0;
44 
45  private:
46 
48 };
49 
50 
51 }}}}}
52 
53 
54 #ifdef SWC_IMPL_SOURCE
56 #endif
57 
58 #endif // swcdb_db_protocol_mngr_req_ColumnMng_Base_h
Clients.h
ColumnMng.h
SWC::Comm::client::ConnQueueReqBase::req
SWC_CAN_INLINE Ptr req() noexcept
Definition: ClientConnQueue.h:39
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::handle_no_conn
void handle_no_conn() override
Definition: ColumnMng_Base.cc:16
SWC::client::Query::ReqBase
Comm::client::ConnQueue::ReqBase ReqBase
Definition: Profiling.h:21
SWC::Comm::client::ConnQueueReqBase
Definition: ClientConnQueue.h:22
SWC::client::Clients::Ptr
ClientsPtr Ptr
Definition: Clients.h:58
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::~ColumnMng_Base
virtual ~ColumnMng_Base() noexcept
Definition: ColumnMng_Base.h:30
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::run
bool run() override
Definition: ColumnMng_Base.h:34
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::get_clients
virtual SWC::client::Clients::Ptr & get_clients() noexcept=0
SWC_CAN_INLINE
#define SWC_CAN_INLINE
Definition: Compat.h:102
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::ColumnMng_Base
SWC_CAN_INLINE ColumnMng_Base(const Params::ColumnMng &params, const uint32_t timeout)
Definition: ColumnMng_Base.h:23
SWC::Comm::Buffers
Definition: Buffers.h:20
Commands.h
SWC::Comm::Protocol::Mngr::Params::ColumnMng
Definition: ColumnMng.h:18
SWC::Core::Vector< EndPoint >
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::endpoints
EndPoints endpoints
Definition: ColumnMng_Base.h:47
ColumnMng_Base.cc
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base
Definition: ColumnMng_Base.h:19
SWC::Comm::Protocol::Mngr::COLUMN_MNG
@ COLUMN_MNG
Definition: Commands.h:64
SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::callback
virtual void callback(int error)=0