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


Public Member Functions | |
| MessageParser (CODEX_Events::DeadPileType &deadPile, CODEX_Events::QType &eventQueue, RoutedMessageHandler *destination) | |
| Constructor. | |
| virtual | ~MessageParser () |
| Virtual destructor. | |
| void | operator() (unsigned char *server, unsigned char *mID, CODEX_Quorum::Message *m) |
| Parse and dispatch a message. | |
| 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. | |
This class reads a marshalled APSS protocol message, determines its type, unmarshals it, and sends it to an appropriate handler.
Definition at line 31 of file CODEX_APSS/MessageParser.h.
|
|
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(). |
|
||||||||||||||||
|
Parse and dispatch a message. The memory for all arguments is taken over by the MessageParser.
Implements CODEX_Server::MessageParser. Definition at line 27 of file MessageParser.cc. References CODEX_Events::Activity::sendEvent(), CODEX_APSS::SignatureMask, and CODEX_APSS::RoutedMessageEventBase::unmarshal(). |
|
||||||||||||||||
1.4.1