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


Public Types | |
| typedef vector< SignedEstablishedMsg > | EvidenceVector |
| Shorthand for the list of evidence. | |
Public Member Functions | |
| InitActivity (CODEX_Events::DeadPileType &deadPile, CODEX_Events::QType &eventQueue, unsigned int version, unsigned int coordinator, unsigned int self, unsigned int num, const unsigned char *key, const SubshareList &subshares, CODEX_Server::ServerResponseHandler *responseHandler, CODEX_Server::UnicastRequestHandler *requestHandler) | |
| Constructor. | |
| virtual | ~InitActivity () |
| Virtual destructor. | |
| bool | handler (CODEX_Events::CloseEvent &event) |
| bool | handler (InitEvent &event) |
| Handle an InitEvent. | |
| void | addFailure () |
| Increment the tally of failed EstablishMsg requests. | |
| void | addEvidence (const SublabelType &label, EvidenceVector *evidence) |
| Add the supporting evidence for a successful EstablishMsg request. | |
| virtual bool | handler (CloseEvent &event)=0 |
| Abstract handler for CloseEvent%s. | |
| 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. | |
Subshare propagation cannot rely on a simple broadcast-callback system, since multiple broadcasts and sets of responses are needed before an InitMsg can be responded to. This class manages the broadcasts and responses, determining when a ContributeMsg can be generated.
Definition at line 40 of file InitActivity.h.
|
||||||||||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 33 of file InitActivity.cc. |
|
|
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(). |
|
||||||||||||||||
1.4.1