mace::AddressCache Class Reference

#include <AddressCache.h>

List of all members.


Detailed Description

Implements a cache for Bamboo, Pastry, or Chord, which tracks the address range of peers.

Used by the CacheRecursiveOverlayRoute service to remember frequently used node's addresses, to support O(1) node lookups and communication.

Definition at line 85 of file AddressCache.h.


Public Member Functions

void insert (const MaceKey &start, const MaceKey &end, const MaceKey &address)
 inserts entries into the address cache.
void remove (const MaceKey &address)
 Removes address from the cache.
MaceKey query (const MaceKey &)
 Return the address associated with a hash address (if any, MaceKey::null otherwise).
void verify (const MaceKey &hash, const MaceKey &address)
 Ensure only the range of address contains hash hash.

Member Function Documentation

void mace::AddressCache::insert ( const MaceKey start,
const MaceKey end,
const MaceKey address 
)


The documentation for this class was generated from the following files:

Generated on Sat Oct 4 21:30:36 2008 for Mace Library by  doxygen 1.5.5