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.cc
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 
7 
9 
10 
11 namespace SWC { namespace Comm { namespace Protocol {
12 namespace Bkr { namespace Req {
13 
14 
15 
17  if(get_clients()->stopping()) {
19  } else if(!valid()) {
21  } else if(_bkr_idx.turn_around(get_clients()->brokers)) {
22  request_again();
23  } else {
24  run();
25  }
26 }
27 
28 }}}}}
SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::handle_no_conn
void handle_no_conn() override
Definition: ColumnMng_Base.cc:16
SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::run
bool run() override
Definition: ColumnMng_Base.h:34
SWC::Comm::client::ConnQueueReqBase::request_again
void request_again()
Definition: ClientConnQueue.cc:12
ColumnMng_Base.h
SWC::Comm::DispatchHandler::valid
virtual bool valid()
Definition: DispatchHandler.h:28
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Error::CLIENT_STOPPING
@ CLIENT_STOPPING
Definition: Error.h:127
SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::_bkr_idx
SWC::client::Brokers::BrokerIdx _bkr_idx
Definition: ColumnMng_Base.h:45
SWC::client::Brokers::BrokerIdx::turn_around
bool turn_around(Brokers &brks) noexcept
Definition: Brokers.cc:152
SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::get_clients
virtual SWC::client::Clients::Ptr & get_clients() noexcept=0
SWC::Error::CANCELLED
@ CANCELLED
Definition: Error.h:56
SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::callback
virtual void callback(int error)=0