Forwarder.h
Go to the documentation of this file.
Definition: AsyncJob.h:32
Definition: Forwarder.h:30
void removeTimeoutEvent()
called when we are no longer waiting for Coordinator to respond
Definition: Forwarder.cc:167
std::map< RequestId::Index, AsyncCall::Pointer > RequestsMap
maps request->id to Forwarder::handleRemoteAck callback
Definition: Forwarder.h:69
CBDATA_INTERMEDIATE()
Forwarder(Request::Pointer aRequest, double aTimeout)
Definition: Forwarder.cc:25
static AsyncCall::Pointer DequeueRequest(RequestId::Index)
returns and forgets the right Forwarder callback for the request
Definition: Forwarder.cc:151
void handleRemoteAck()
called when Coordinator starts processing the request
Definition: Forwarder.cc:86
void requestTimedOut()
called when Coordinator fails to start processing the request [in time]
Definition: Forwarder.cc:112
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: Forwarder.cc:139
virtual void handleException(const std::exception &e)
terminate with an error
Definition: Forwarder.cc:132
static void HandleRemoteAck(RequestId)
finds and calls the right Forwarder upon Coordinator's response
Definition: Forwarder.cc:174
static void RequestTimedOut(void *param)
Ipc::Forwarder::requestTimedOut wrapper.
Definition: Forwarder.cc:98
Definition: RequestId.h:23
Definition: IpcIoFile.h:24