#include <Response.h>
Public Types | |
typedef RefCount< Response > | Pointer |
Public Member Functions | |
Response (Ipc::RequestId, Action::Pointer anAction=nullptr) | |
sender's constructor More... | |
Response (const Ipc::TypedMsgHdr &msg) | |
from recvmsg() More... | |
void | pack (Ipc::TypedMsgHdr &msg) const override |
prepare for sendmsg() More... | |
Ipc::Response::Pointer | clone () const override |
returns a copy of this More... | |
bool | hasAction () const |
whether response contain action object More... | |
const Action & | getAction () const |
returns action object More... | |
QuestionerId | intendedRecepient () const |
for Mine() tests More... | |
Public Attributes | |
Action::Pointer | action |
action relating to response More... | |
RequestId | requestId |
the ID of the request we are responding to More... | |
Detailed Description
A response to Mgr::Request. May carry strand action data to be aggregated with data from other strands.
Definition at line 23 of file Response.h.
Member Typedef Documentation
◆ Pointer
|
inherited |
Definition at line 26 of file Response.h.
Constructor & Destructor Documentation
◆ Response() [1/2]
Mgr::Response::Response | ( | Ipc::RequestId | aRequestId, |
Action::Pointer | anAction = nullptr |
||
) |
Definition at line 21 of file Response.cc.
◆ Response() [2/2]
|
explicit |
Definition at line 27 of file Response.cc.
References action(), Ipc::TypedMsgHdr::checkType(), CacheManager::createNamedAction(), CacheManager::GetInstance(), Ipc::TypedMsgHdr::getPod(), Ipc::TypedMsgHdr::getString(), Ipc::TypedMsgHdr::hasMoreData(), Ipc::mtCacheMgrResponse, Must, and String::termedBuf().
Member Function Documentation
◆ clone()
|
overridevirtual |
Implements Ipc::Response.
Definition at line 55 of file Response.cc.
◆ getAction()
const Mgr::Action & Mgr::Response::getAction | ( | ) | const |
Definition at line 67 of file Response.cc.
References action(), and Must.
Referenced by Mgr::Inquirer::aggregate().
◆ hasAction()
bool Mgr::Response::hasAction | ( | ) | const |
Definition at line 61 of file Response.cc.
References action().
Referenced by Mgr::Inquirer::aggregate().
◆ intendedRecepient()
|
inlineinherited |
Definition at line 33 of file Response.h.
References Ipc::RequestId::questioner(), and Ipc::Response::requestId.
◆ pack()
|
overridevirtual |
Implements Ipc::Response.
Definition at line 43 of file Response.cc.
References action(), Ipc::mtCacheMgrResponse, Must, Ipc::TypedMsgHdr::putPod(), Ipc::TypedMsgHdr::putString(), and Ipc::TypedMsgHdr::setType().
Referenced by Ipc::Coordinator::handleCacheMgrRequest(), and Mgr::Action::sendResponse().
Member Data Documentation
◆ action
Action::Pointer Mgr::Response::action |
Definition at line 39 of file Response.h.
Referenced by Response().
◆ requestId
|
inherited |
Definition at line 36 of file Response.h.
Referenced by Ipc::Strand::handleCacheMgrResponse(), Ipc::Inquirer::HandleRemoteAck(), Ipc::Strand::handleSnmpResponse(), and Ipc::Response::intendedRecepient().
The documentation for this class was generated from the following files:
- src/mgr/Response.h
- src/mgr/Response.cc