#include <MessageDeliverer.h>
Inheritance diagram for CODEX_APSS::MessageDeliverer:


Public Member Functions | |
| MessageDeliverer (CODEX_Events::DeadPileType &deadPile, CODEX_Events::QType &eventQueue, CODEX_Server::ServerResponseHandler *responder, CODEX_Server::BroadcastRequestHandler *broadcaster) | |
| Create a MessageDeliverer. | |
| virtual | ~MessageDeliverer () |
| Virtual destructor. | |
| void | sendTo (unsigned int server, const CODEX_Quorum::Message &message) |
| Send a message to a server. | |
| void | broadcast (const CODEX_Quorum::Message &message, CODEX_Quorum::ResponseCallback *cb) |
| Broadcast a message to the CODEX_Quorum::QuorumSystem. | |
| virtual bool | handler (EventAck &event) |
| The base class is responsible for handling acknowledgements, which are relevant to whether the Activity is ready for deletion. | |
Protected Member Functions | |
| void | sendEvent (EventBase *event, Activity *source, bool failure=false) |
| void | enableTerminate () |
| This method should be called when an Activity has received a CloseEvent or other indicator that it is no longer needed. | |
Protected Attributes | |
| DeadPileType & | m_deadPile |
| The pile of Activity%s to be garbage-collected. | |
| QType & | m_queue |
| The event queue. | |
Since a number of classes need to emit messages, yet are not CODEX_Events::Activitys, this class provides an interface for generating message events.
Definition at line 35 of file MessageDeliverer.h.
|
||||||||||||
|
Broadcast a message to the CODEX_Quorum::QuorumSystem. This method generated a CODEX_Server::BroadcastRequestEvent.
Definition at line 52 of file MessageDeliverer.cc. References CODEX_Events::Activity::sendEvent(). Referenced by CODEX_APSS::StateInfo::broadcast(). |
|
|
This method should be called when an Activity has received a CloseEvent or other indicator that it is no longer needed. Actual termination will not occur until there are no remaining events outstanding (unacknowledged). Definition at line 63 of file Activity.cc. Referenced by CODEX_KeyService::ClientActivity::handler(), and CODEX_KeyService::ClientActivity::processRequest(). |
|
|
The base class is responsible for handling acknowledgements, which are relevant to whether the Activity is ready for deletion. If a derived class reimpliments this method, it must call this version explicitly. Definition at line 39 of file Activity.cc. Referenced by CODEX_Events::EventAck::handle(), and CODEX_KeyService::ClientActivity::handler(). |
|
||||||||||||||||
|
||||||||||||
|
Send a message to a server. This method generates a CODEX_Server::ServerResponseEvent.
Definition at line 40 of file MessageDeliverer.cc. References CODEX_Events::Activity::sendEvent(). Referenced by CODEX_APSS::StateInfo::sendTo(). |
1.4.1