|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
10 namespace SWC {
namespace Comm {
namespace Protocol {
11 namespace Mngr {
namespace Req {
18 !
clients->get_mngr_io()->running) {
23 timer.expires_after(std::chrono::milliseconds(t_ms));
28 : ptr(std::move(a_ptr)) { }
30 TimerTask(TimerTask&& other) noexcept : ptr(std::move(other.ptr)) { }
31 TimerTask(
const TimerTask&) =
delete;
32 TimerTask& operator=(TimerTask&&) =
delete;
33 TimerTask& operator=(
const TimerTask&) =
delete;
34 ~TimerTask() noexcept { }
35 void operator()(
const asio::error_code& ec) {
36 if(ec != asio::error::operation_aborted)
40 timer.async_wait(TimerTask(shared_from_this()));
45 "MngrActive(role=%d cid=" SWC_FMT_LU " req=%s) no-conn",
49 !
clients->get_mngr_io()->running) {
65 "Empty cfg of mngr.host for role=%d cid=" SWC_FMT_LU " req=%s",
82 const uint8_t *ptr = ev->data.base;
83 size_t remain = ev->data.size;
86 params.
decode(&ptr, &remain);
SWC_CAN_INLINE Ptr req() noexcept
#define SWC_LOGF(priority, fmt,...)
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
DispatchHandler::Ptr hdlr
SWC::client::Mngr::Groups::GroupHost group_host
void run_within(uint32_t t_ms=1000)
SWC::client::Clients::Ptr clients
constexpr SWC_CAN_INLINE bool empty() const noexcept
The SWC-DB C++ namespace 'SWC'.
std::shared_ptr< ConnHandler > ConnHandlerPtr
void handle_no_conn() override
asio::high_resolution_timer timer
SWC_CAN_INLINE const char * type_name(const T &obj) noexcept
void decode(const uint8_t **bufp, size_t *remainp)
std::shared_ptr< Event > Ptr
Comm::EndPoints endpoints
void handle(ConnHandlerPtr conn, const Event::Ptr &ev) override
std::shared_ptr< DispatchHandler > Ptr
SWC::client::Mngr::Hosts hosts
constexpr SWC_CAN_INLINE size_type size() const noexcept
#define SWC_LOG_CURRENT_EXCEPTION(_s_)