#include <swcdb/db/Protocol/Rgr/req/Report.h>
Public Types | |
typedef std::function< void(const client::ConnQueue::ReqBase::Ptr &, const int &, const Params::Report::RspColumnsRanges &)> | Cb_t |
typedef std::shared_ptr< ReportColumnsRanges > | Ptr |
Public Types inherited from SWC::Comm::client::ConnQueueReqBase | |
typedef std::shared_ptr< ConnQueueReqBase > | Ptr |
Public Types inherited from SWC::Comm::DispatchHandler | |
typedef std::shared_ptr< DispatchHandler > | Ptr |
Static Public Member Functions | |
static SWC_CAN_INLINE void | request (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, Cb_t &&cb, const uint32_t timeout=10000) |
static SWC_CAN_INLINE void | request (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, cid_t cid, Cb_t &&cb, const uint32_t timeout=10000) |
Private Attributes | |
const Cb_t | cb |
Additional Inherited Members | |
Public Attributes inherited from SWC::Comm::client::ConnQueueReqBase | |
Buffers::Ptr | cbp |
ConnQueuePtr | queue |
Protected Member Functions inherited from SWC::Comm::client::ConnQueueReqBase | |
virtual | ~ConnQueueReqBase () noexcept |
Protected Member Functions inherited from SWC::Comm::DispatchHandler | |
virtual | ~DispatchHandler () noexcept |
Protected Attributes inherited from SWC::Comm::Protocol::Rgr::Req::Report | |
SWC::client::Clients::Ptr | clients |
EndPoints | endpoints |
typedef std::function<void(const client::ConnQueue::ReqBase::Ptr&, const int&, const Params::Report::RspColumnsRanges&)> SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges::Cb_t |
typedef std::shared_ptr<ReportColumnsRanges> SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges::Ptr |
SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges::ReportColumnsRanges | ( | const SWC::client::Clients::Ptr & | clients, |
const EndPoints & | endpoints, | ||
ReportColumnsRanges::Cb_t && | a_cb, | ||
const uint32_t | timeout | ||
) |
SWC::Comm::Protocol::Rgr::Req::ReportColumnsRanges::ReportColumnsRanges | ( | const SWC::client::Clients::Ptr & | clients, |
const EndPoints & | endpoints, | ||
cid_t | cid, | ||
ReportColumnsRanges::Cb_t && | a_cb, | ||
const uint32_t | timeout | ||
) |
|
inlinevirtualnoexcept |
|
overridevirtual |
Implements SWC::Comm::DispatchHandler.
Definition at line 208 of file Report.cc.
References cb, SWC::Error::Exception::code(), SWC::Comm::Serializable::decode(), SWC::Serialization::decode_i32(), SWC::LOG_ERROR, SWC::Comm::client::ConnQueueReqBase::req(), SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, and SWC_LOG_OUT.
|
overridevirtual |
Implements SWC::Comm::DispatchHandler.
Definition at line 204 of file Report.cc.
References cb, SWC::Error::COMM_CONNECT_ERROR, and SWC::Comm::client::ConnQueueReqBase::req().
|
inlinestatic |
Definition at line 166 of file Report.h.
References cb, SWC::Comm::Protocol::Rgr::Req::Report::clients, SWC::Comm::Protocol::Rgr::Req::Report::endpoints, and ReportColumnsRanges().
Referenced by SWC::Utils::shell::Rgr::report().
|
inlinestatic |
Definition at line 175 of file Report.h.
References cb, SWC::Comm::Protocol::Rgr::Req::Report::clients, SWC::Comm::Protocol::Rgr::Req::Report::endpoints, and ReportColumnsRanges().
|
private |
Definition at line 204 of file Report.h.
Referenced by handle(), handle_no_conn(), and request().