Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Server::ShareLabelChallenge Class Reference

Encapsulate a challenge to the validity of a label. More...

#include <ShareLabelChallenge.h>

Collaboration diagram for CODEX_Server::ShareLabelChallenge:

Collaboration graph
[legend]
List of all members.

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 LabelTypelabel () const
 The alleged-valid label.
unsigned int challenger () const
 The issuer of the challenge.
CallbackTypecallback () const
 The callback to use for a new request.
EventTypeevent () const
 The event to enqueue for a new request.
void zeroData ()
 Clear the data, which prevents the memory from being reclaimed.

Detailed Description

Encapsulate a challenge to the validity of a label.

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 & Destructor Documentation

ShareLabelChallenge::ShareLabelChallenge const LabelType label,
unsigned int  challenger,
CallbackType callback,
EventType event
 

Constructor.

Parameters:
label The label claimed by a challenger.
challenger The server issuing the challenge.
callback The callback to use if this challenge results in a re-broadcast of the request.
event The event containing the request to re-broadcast.

Definition at line 22 of file ShareLabelChallenge.cc.


The documentation for this class was generated from the following files:
Generated on Fri May 6 17:42:48 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1