cache manager request More...
#include <Request.h>
Public Types | |
typedef RefCount< Request > | Pointer |
Public Member Functions | |
Request (int aRequestorId, Ipc::RequestId, const Comm::ConnectionPointer &aConn, const ActionParams &aParams) | |
Request (const Ipc::TypedMsgHdr &msg) | |
from recvmsg() More... | |
void | pack (Ipc::TypedMsgHdr &msg) const override |
prepare for sendmsg() More... | |
Pointer | clone () const override |
returns a copy of this More... | |
Public Attributes | |
Comm::ConnectionPointer | conn |
HTTP client connection descriptor. More... | |
ActionParams | params |
action name and parameters More... | |
int | requestorId = 0 |
kidId of the requestor; used for response destination More... | |
RequestId | requestId |
matches the request[or] with the response More... | |
Detailed Description
Member Typedef Documentation
◆ Pointer
|
inherited |
Constructor & Destructor Documentation
◆ Request() [1/2]
Mgr::Request::Request | ( | int | aRequestorId, |
Ipc::RequestId | aRequestId, | ||
const Comm::ConnectionPointer & | aConn, | ||
const ActionParams & | aParams | ||
) |
Definition at line 19 of file Request.cc.
References Must, and Ipc::Request::requestorId.
◆ Request() [2/2]
|
explicit |
Definition at line 30 of file Request.cc.
References Ipc::TypedMsgHdr::checkType(), conn, Ipc::TypedMsgHdr::getFd(), Ipc::TypedMsgHdr::getPod(), and Ipc::mtCacheMgrRequest.
Member Function Documentation
◆ clone()
|
overridevirtual |
Implements Ipc::Request.
Definition at line 55 of file Request.cc.
◆ pack()
|
overridevirtual |
Implements Ipc::Request.
Definition at line 44 of file Request.cc.
References conn, Ipc::mtCacheMgrRequest, Ipc::TypedMsgHdr::putFd(), Ipc::TypedMsgHdr::putPod(), and Ipc::TypedMsgHdr::setType().
Member Data Documentation
◆ conn
Comm::ConnectionPointer Mgr::Request::conn |
Definition at line 35 of file Request.h.
Referenced by Mgr::Inquirer::Inquirer(), Ipc::Coordinator::handleCacheMgrRequest(), Mgr::Action::respond(), Mgr::FunAction::respond(), and Mgr::InfoAction::respond().
◆ params
ActionParams Mgr::Request::params |
Definition at line 37 of file Request.h.
Referenced by Ipc::Coordinator::handleCacheMgrRequest(), and Ipc::Strand::handleCacheMgrRequest().
◆ requestId
|
inherited |
Definition at line 38 of file Request.h.
Referenced by Ipc::Coordinator::handleCacheMgrRequest(), Ipc::Coordinator::handleSnmpRequest(), Ipc::Strand::handleSnmpRequest(), Mgr::Action::respond(), Mgr::FunAction::respond(), and Mgr::InfoAction::respond().
◆ requestorId
|
inherited |
Definition at line 37 of file Request.h.
Referenced by Request(), Ipc::Coordinator::handleCacheMgrRequest(), and Ipc::Coordinator::handleSnmpRequest().
The documentation for this class was generated from the following files:
- src/mgr/Request.h
- src/mgr/Request.cc