Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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 Methods

 ShareLabelChallenge (const LabelType &label, unsigned int challenger, CallbackType *callback, EventType *event)
 Constructor.

 ~ShareLabelChallenge ()
 Virtual destructor.

const LabelTypelabel () const
 
Returns:
The alleged-valid label.


unsigned int challenger () const
 
Returns:
The issuer of the challenge.


CallbackTypecallback () const
 
Returns:
The callback to use for a new request.


EventTypeevent () const
 
Returns:
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 35 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.

References CODEX_APSS::LabelType.


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:21 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18