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::Protocol::Rgr::Req::ReportRes Class Reference

#include <swcdb/db/Protocol/Rgr/req/Report.h>

+ Inheritance diagram for SWC::Comm::Protocol::Rgr::Req::ReportRes:
+ Collaboration diagram for SWC::Comm::Protocol::Rgr::Req::ReportRes:

Public Types

typedef std::function< void(const client::ConnQueue::ReqBase::Ptr &, const int &, const Params::Report::RspRes &)> Cb_t
 
typedef std::shared_ptr< ReportResPtr
 
typedef std::shared_ptr< ReportResPtr
 
- Public Types inherited from SWC::Comm::client::ConnQueueReqBase
typedef std::shared_ptr< ConnQueueReqBasePtr
 
- Public Types inherited from SWC::Comm::DispatchHandler
typedef std::shared_ptr< DispatchHandlerPtr
 

Public Member Functions

 ReportRes (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, Cb_t &&cb, const uint32_t timeout)
 
virtual ~ReportRes () noexcept
 
void handle_no_conn () override
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
 ReportRes (const Manager::Ranger::Ptr &rgr)
 
virtual ~ReportRes () noexcept
 
void handle_no_conn () override
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
- Public Member Functions inherited from SWC::Comm::Protocol::Rgr::Req::Report
 Report (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, Params::Report::Function func, const uint32_t timeout)
 
 Report (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, Params::Report::Function func, const Serializable &params, const uint32_t timeout)
 
 Report (Report &&)=delete
 
 Report (const Report &)=delete
 
Reportoperator= (Report &&)=delete
 
Reportoperator= (const Report &)=delete
 
virtual ~Report () noexcept
 
bool run () override
 
- Public Member Functions inherited from SWC::Comm::client::ConnQueueReqBase
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp) noexcept
 
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp, const ConnQueuePtr &a_queue) noexcept
 
SWC_CAN_INLINE Ptr req () noexcept
 
virtual bool insistent () noexcept
 
void request_again ()
 
void print (std::ostream &out)
 
- Public Member Functions inherited from SWC::Comm::DispatchHandler
virtual bool valid ()
 

Static Public Member Functions

static void request (const SWC::client::Clients::Ptr &clients, const EndPoints &endpoints, Cb_t &&cb, const uint32_t timeout=10000)
 

Private Attributes

const Cb_t cb
 
Manager::Ranger::Ptr rgr
 

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
 

Detailed Description

Definition at line 49 of file Report.h.

Member Typedef Documentation

◆ Cb_t

Definition at line 54 of file Report.h.

◆ Ptr [1/2]

Definition at line 55 of file Report.h.

◆ Ptr [2/2]

Definition at line 16 of file ReportRes.h.

Constructor & Destructor Documentation

◆ ReportRes() [1/2]

SWC::Comm::Protocol::Rgr::Req::ReportRes::ReportRes ( const SWC::client::Clients::Ptr clients,
const EndPoints endpoints,
ReportRes::Cb_t &&  a_cb,
const uint32_t  timeout 
)

Definition at line 48 of file Report.cc.

Referenced by request().

+ Here is the caller graph for this function:

◆ ~ReportRes() [1/2]

virtual SWC::Comm::Protocol::Rgr::Req::ReportRes::~ReportRes ( )
inlinevirtualnoexcept

Definition at line 70 of file Report.h.

◆ ReportRes() [2/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::ReportRes::ReportRes ( const Manager::Ranger::Ptr rgr)

◆ ~ReportRes() [2/2]

virtual SWC::Comm::Protocol::Rgr::Req::ReportRes::~ReportRes ( )
inlinevirtualnoexcept

Definition at line 20 of file ReportRes.h.

Member Function Documentation

◆ handle() [1/2]

void SWC::Comm::Protocol::Rgr::Req::ReportRes::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 64 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.

+ Here is the call graph for this function:

◆ handle() [2/2]

void SWC::Comm::Protocol::Rgr::Req::ReportRes::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
overridevirtual

◆ handle_no_conn() [1/2]

void SWC::Comm::Protocol::Rgr::Req::ReportRes::handle_no_conn ( )
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 60 of file Report.cc.

References cb, SWC::Error::COMM_CONNECT_ERROR, and SWC::Comm::client::ConnQueueReqBase::req().

+ Here is the call graph for this function:

◆ handle_no_conn() [2/2]

void SWC::Comm::Protocol::Rgr::Req::ReportRes::handle_no_conn ( )
overridevirtual

◆ request()

static void SWC::Comm::Protocol::Rgr::Req::ReportRes::request ( const SWC::client::Clients::Ptr clients,
const EndPoints endpoints,
Cb_t &&  cb,
const uint32_t  timeout = 10000 
)
inlinestatic

Definition at line 57 of file Report.h.

References cb, SWC::Comm::Protocol::Rgr::Req::Report::clients, SWC::Comm::Protocol::Rgr::Req::Report::endpoints, and ReportRes().

Referenced by SWC::Utils::shell::Rgr::report_resources().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ cb

const Cb_t SWC::Comm::Protocol::Rgr::Req::ReportRes::cb
private

Definition at line 78 of file Report.h.

Referenced by handle(), handle_no_conn(), and request().

◆ rgr

Manager::Ranger::Ptr SWC::Comm::Protocol::Rgr::Req::ReportRes::rgr
private

Definition at line 28 of file ReportRes.h.


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