Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Quorum::QuorumDispatcher Class Reference

Virtual base class for handling responses from a quorum. More...

#include <MessageDispatcher.h>

Inheritance diagram for CODEX_Quorum::QuorumDispatcher:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual void operator() (const void *request, ResponseInfo *ri)=0
 Method used to dispatch a collection of responses to a request.


Detailed Description

Virtual base class for handling responses from a quorum.

In order to implement a QuorumSystem and poll for incoming messages a derived class must be written that implements operator(). This will be called by the concrete QuorumSystem::poll() method when a quorum of messages have been received for a request sent out by the local server.

Definition at line 55 of file MessageDispatcher.h.


Member Function Documentation

virtual void CODEX_Quorum::QuorumDispatcher::operator() const void *    request,
ResponseInfo   ri
[pure virtual]
 

Method used to dispatch a collection of responses to a request.

The QuorumDispatcher takes ownership of both parameters passed to it, and is responsible for ensuring that their memory is freed.

Parameters:
request  Unique identifier of the request for which responses have been collected.
ri  ResponseInfo for request.

Implemented in CODEX_Server::ServerQuorumDispatcher.


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