SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::DispatchHandler Class Referenceabstract

#include <swcdb/core/comm/DispatchHandler.h>

+ Inheritance diagram for SWC::Comm::DispatchHandler:
+ Collaboration diagram for SWC::Comm::DispatchHandler:

Public Types

typedef std::shared_ptr< DispatchHandlerPtr
 

Public Member Functions

virtual void handle_no_conn ()=0
 
virtual void handle (ConnHandlerPtr conn, const Event::Ptr &ev)=0
 
virtual bool run ()
 
virtual bool valid ()
 

Protected Member Functions

virtual ~DispatchHandler () noexcept
 

Detailed Description

Definition at line 17 of file DispatchHandler.h.

Member Typedef Documentation

◆ Ptr

Definition at line 20 of file DispatchHandler.h.

Constructor & Destructor Documentation

◆ ~DispatchHandler()

virtual SWC::Comm::DispatchHandler::~DispatchHandler ( )
inlineprotectedvirtualnoexcept

Definition at line 32 of file DispatchHandler.h.

Member Function Documentation

◆ handle()

virtual void SWC::Comm::DispatchHandler::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
pure virtual

Implemented in SWC::Comm::Protocol::Mngr::Req::RgrMngId, SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded, SWC::Comm::Protocol::FsBroker::Req::WriteSync, SWC::Comm::Protocol::FsBroker::Req::Write, SWC::Comm::Protocol::FsBroker::Req::SyncSync, SWC::Comm::Protocol::FsBroker::Req::Sync, SWC::Comm::Protocol::FsBroker::Req::SeekSync, SWC::Comm::Protocol::FsBroker::Req::Seek, SWC::Comm::Protocol::FsBroker::Req::RmdirSync, SWC::Comm::Protocol::FsBroker::Req::Rmdir, SWC::Comm::Protocol::FsBroker::Req::RenameSync, SWC::Comm::Protocol::FsBroker::Req::Rename, SWC::Comm::Protocol::FsBroker::Req::RemoveSync, SWC::Comm::Protocol::FsBroker::Req::Remove, SWC::Comm::Protocol::FsBroker::Req::ReadSync, SWC::Comm::Protocol::FsBroker::Req::ReaddirSync, SWC::Comm::Protocol::FsBroker::Req::Readdir, SWC::Comm::Protocol::FsBroker::Req::ReadAllSync, SWC::Comm::Protocol::FsBroker::Req::ReadAll, SWC::Comm::Protocol::FsBroker::Req::Read, SWC::Comm::Protocol::FsBroker::Req::PreadSync, SWC::Comm::Protocol::FsBroker::Req::Pread, SWC::Comm::Protocol::FsBroker::Req::OpenSync, SWC::Comm::Protocol::FsBroker::Req::Open, SWC::Comm::Protocol::FsBroker::Req::MkdirsSync, SWC::Comm::Protocol::FsBroker::Req::Mkdirs, SWC::Comm::Protocol::FsBroker::Req::LengthSync, SWC::Comm::Protocol::FsBroker::Req::Length, SWC::Comm::Protocol::FsBroker::Req::FlushSync, SWC::Comm::Protocol::FsBroker::Req::Flush, SWC::Comm::Protocol::FsBroker::Req::ExistsSync, SWC::Comm::Protocol::FsBroker::Req::Exists, SWC::Comm::Protocol::FsBroker::Req::CreateSync, SWC::Comm::Protocol::FsBroker::Req::Create, SWC::Comm::Protocol::FsBroker::Req::CombiPreadSync, SWC::Comm::Protocol::FsBroker::Req::CombiPread, SWC::Comm::Protocol::FsBroker::Req::CloseSync, SWC::Comm::Protocol::FsBroker::Req::Close, SWC::Comm::Protocol::FsBroker::Req::AppendSync, SWC::Comm::Protocol::FsBroker::Req::Append, SWC::Comm::Protocol::Rgr::Req::RangeQueryUpdate< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeQuerySelect< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeLocate< DataT >, SWC::Comm::Protocol::Rgr::Req::ColumnCompact, SWC::Comm::Protocol::Mngr::Req::RgrGet< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeUnloaded< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeRemove< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeCreate< DataT >, SWC::Comm::Protocol::Mngr::Req::Echo, SWC::Comm::Protocol::Mngr::Req::ColumnMng< DataT >, SWC::Comm::Protocol::Mngr::Req::ColumnCompact< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnMng< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnCompact< DataT >, SWC::Comm::Protocol::Bkr::Req::CellsUpdate< DataT >, SWC::Comm::Protocol::Bkr::Req::CellsSelect< DataT >, SWC::Comm::Protocol::Mngr::Handler::MngrColumnGet, SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Rgr::Req::ReportRes, SWC::Comm::Protocol::Rgr::Req::RangeUnoadForMerge, SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Rgr::Req::RangeLoad, SWC::Comm::Protocol::Rgr::Req::ColumnUpdate, SWC::Comm::Protocol::Rgr::Req::ColumnsUnload, SWC::Comm::Protocol::Rgr::Req::ColumnDelete, SWC::Comm::Protocol::Mngr::Req::RgrUpdate, SWC::Comm::Protocol::Mngr::Req::MngrState, SWC::Comm::Protocol::Mngr::Req::ColumnUpdate, SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges, SWC::Comm::Protocol::Rgr::Req::ReportColumnRids, SWC::Comm::Protocol::Rgr::Req::ReportCids, SWC::Comm::Protocol::Rgr::Req::ReportRes, SWC::Comm::Protocol::Mngr::Req::ManagersStatus, SWC::Comm::Protocol::Mngr::Req::RangersStatus, SWC::Comm::Protocol::Mngr::Req::ColumnStatus, SWC::Comm::Protocol::Mngr::Req::ClusterStatus, SWC::Comm::Protocol::Mngr::Req::MngrActive, SWC::Comm::Protocol::Mngr::Req::ColumnList_Base, SWC::Comm::Protocol::Mngr::Req::ColumnGet_Base, SWC::Comm::Protocol::Bkr::Req::ColumnList_Base, and SWC::Comm::Protocol::Bkr::Req::ColumnGet_Base.

Referenced by SWC::Comm::Protocol::FsBroker::Req::Base::handle_no_conn().

+ Here is the caller graph for this function:

◆ handle_no_conn()

virtual void SWC::Comm::DispatchHandler::handle_no_conn ( )
pure virtual

Implemented in SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Mngr::Req::RgrMngId, SWC::Comm::Protocol::Rgr::Req::ReportRes, SWC::Comm::Protocol::Rgr::Req::RangeUnoadForMerge, SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Rgr::Req::RangeLoad, SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded, SWC::Comm::Protocol::Rgr::Req::ColumnUpdate, SWC::Comm::Protocol::Rgr::Req::ColumnsUnload, SWC::Comm::Protocol::Rgr::Req::ColumnDelete, SWC::Comm::Protocol::Mngr::Req::RgrUpdate, SWC::Comm::Protocol::Mngr::Req::MngrState, SWC::Comm::Protocol::Mngr::Req::ColumnUpdate, SWC::Comm::Protocol::Mngr::Handler::MngrColumnGet, SWC::Comm::Protocol::FsBroker::Req::Base, SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges, SWC::Comm::Protocol::Rgr::Req::ReportColumnRids, SWC::Comm::Protocol::Rgr::Req::ReportCids, SWC::Comm::Protocol::Rgr::Req::ReportRes, SWC::Comm::Protocol::Rgr::Req::RangeQueryUpdate< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeQuerySelect< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeLocate< DataT >, SWC::Comm::Protocol::Rgr::Req::ColumnCompact, SWC::Comm::Protocol::Mngr::Req::RgrGet_Base, SWC::Comm::Protocol::Mngr::Req::ManagersStatus, SWC::Comm::Protocol::Mngr::Req::ClusterStatus, SWC::Comm::Protocol::Mngr::Req::Report, SWC::Comm::Protocol::Mngr::Req::RangeUnloaded< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeRemove< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeCreate< DataT >, SWC::Comm::Protocol::Mngr::Req::MngrActive, SWC::Comm::Protocol::Mngr::Req::Echo, SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base, SWC::Comm::Protocol::Mngr::Req::ColumnList_Base, SWC::Comm::Protocol::Mngr::Req::ColumnGet_Base, SWC::Comm::Protocol::Mngr::Req::ColumnCompact_Base, SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base, SWC::Comm::Protocol::Bkr::Req::ColumnList_Base, SWC::Comm::Protocol::Bkr::Req::ColumnGet_Base, SWC::Comm::Protocol::Bkr::Req::ColumnCompact_Base, SWC::Comm::Protocol::Bkr::Req::CellsUpdate< DataT >, and SWC::Comm::Protocol::Bkr::Req::CellsSelect< DataT >.

◆ run()

◆ valid()

virtual bool SWC::Comm::DispatchHandler::valid ( )
inlinevirtual

Reimplemented in SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Rgr::Req::RangeUnoadForMerge, SWC::Comm::Protocol::Rgr::Req::RangeUnload, SWC::Comm::Protocol::Rgr::Req::RangeLoad, SWC::Comm::Protocol::Rgr::Req::RangeIsLoaded, SWC::Comm::Protocol::Mngr::Handler::MngrColumnGet, SWC::Comm::Protocol::Rgr::Req::RangeQueryUpdate< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeQuerySelect< DataT >, SWC::Comm::Protocol::Rgr::Req::RangeLocate< DataT >, SWC::Comm::Protocol::Mngr::Req::RgrGet< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeUnloaded< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeRemove< DataT >, SWC::Comm::Protocol::Mngr::Req::RangeCreate< DataT >, SWC::Comm::Protocol::Mngr::Req::ColumnMng< DataT >, SWC::Comm::Protocol::Mngr::Req::ColumnList< DataT >, SWC::Comm::Protocol::Mngr::Req::ColumnGet< DataT >, SWC::Comm::Protocol::Mngr::Req::ColumnCompact< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnMng< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnList< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnGet< DataT >, SWC::Comm::Protocol::Bkr::Req::ColumnCompact< DataT >, SWC::Comm::Protocol::Bkr::Req::CellsUpdate< DataT >, and SWC::Comm::Protocol::Bkr::Req::CellsSelect< DataT >.

Definition at line 28 of file DispatchHandler.h.

Referenced by SWC::Comm::Protocol::Bkr::Req::ColumnGet_Base::handle(), SWC::Comm::Protocol::Bkr::Req::ColumnList_Base::handle(), SWC::Comm::Protocol::Mngr::Req::ColumnGet_Base::handle(), SWC::Comm::Protocol::Mngr::Req::ColumnList_Base::handle(), SWC::Comm::Protocol::Bkr::Req::ColumnCompact_Base::handle_no_conn(), SWC::Comm::Protocol::Bkr::Req::ColumnGet_Base::handle_no_conn(), SWC::Comm::Protocol::Bkr::Req::ColumnList_Base::handle_no_conn(), SWC::Comm::Protocol::Bkr::Req::ColumnMng_Base::handle_no_conn(), SWC::Comm::Protocol::Mngr::Req::ColumnCompact_Base::handle_no_conn(), SWC::Comm::Protocol::Mngr::Req::ColumnGet_Base::handle_no_conn(), SWC::Comm::Protocol::Mngr::Req::ColumnList_Base::handle_no_conn(), SWC::Comm::Protocol::Mngr::Req::ColumnMng_Base::handle_no_conn(), and SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::handle_no_conn().

+ Here is the caller graph for this function:

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