#include <ShareLabelChallenge.h>
Collaboration diagram for CODEX_Server::ShareLabelChallenge:

Public Types | |
| typedef ServerState::LSType::LabelType | LabelType |
| Shorthand for the type of a sharing label. | |
| typedef CODEX_Quorum::ResponseCallback | CallbackType |
| Shorthand for the type of a broadcast callback. | |
| typedef CODEX_Events::EventBase | EventType |
| Shorthand for the base event type. | |
Public Member Functions | |
| ShareLabelChallenge (const LabelType &label, unsigned int challenger, CallbackType *callback, EventType *event) | |
| Constructor. | |
| ~ShareLabelChallenge () | |
| Virtual destructor. | |
| const LabelType & | label () const |
| The alleged-valid label. | |
| unsigned int | challenger () const |
| The issuer of the challenge. | |
| CallbackType * | callback () const |
| The callback to use for a new request. | |
| EventType * | event () const |
| The event to enqueue for a new request. | |
| void | zeroData () |
| Clear the data, which prevents the memory from being reclaimed. | |
Since labels are valid at different servers at different times, it is not possible to know a priori whether a request with a specific label will be accepted by sufficient servers. This class encapsulates enough of a challenge to issue a new request when an old request is determined to be unable to complete.
Definition at line 38 of file ShareLabelChallenge.h.
|
||||||||||||||||||||
|
Constructor.
Definition at line 22 of file ShareLabelChallenge.cc. |
1.4.1