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

ClusterCache Class Reference

List of all members.

Public Member Functions

 this (Cluster cluster, uint defaultSize)
ChannelCache addCache (char[] channel, uint size)
void put (char[] channel, char[] element, ClusterContent content)
ClusterContent extract (char[] channel, char[] element)
ClusterContent get (char[] channel, char[] element)
bool lockWhereInvalid (char[] channel, char[] element, long time)
void unlock (char[] channel, char[] element)

Private Member Functions

final ChannelCache lookup (char[] channel)

Private Attributes

Cluster cluster
HashMap cacheSet
uint defaultSize

Detailed Description

The socket QOS cache containers. These are created by ClusterServer and maintained via ClusterThread.

Definition at line 65 of file ClusterCache.d.


Member Function Documentation

this Cluster  cluster,
uint  defaultSize
[inline]
 

Definition at line 75 of file ClusterCache.d.

References cluster, defaultSize, and HashMap.

final ChannelCache lookup char[]  channel  )  [inline, private]
 

Definition at line 86 of file ClusterCache.d.

References cacheSet, and HashMap::get().

Referenced by extract(), get(), lockWhereInvalid(), put(), and unlock().

ChannelCache addCache char[]  channel,
uint  size
[inline]
 

Definition at line 95 of file ClusterCache.d.

References cacheSet, cluster, and HashMap::put().

Referenced by lockWhereInvalid(), and put().

void put char[]  channel,
char[]  element,
ClusterContent  content
[inline]
 

Definition at line 110 of file ClusterCache.d.

References addCache(), defaultSize, lookup(), and ChannelCache::put().

Referenced by CacheServer::LoaderThread::load(), and ClusterThread::run().

ClusterContent extract char[]  channel,
char[]  element
[inline]
 

Definition at line 124 of file ClusterCache.d.

References ChannelCache::extract(), and lookup().

Referenced by ClusterThread::run().

ClusterContent get char[]  channel,
char[]  element
[inline]
 

Definition at line 138 of file ClusterCache.d.

References ChannelCache::get(), and lookup().

Referenced by ClusterThread::run().

bool lockWhereInvalid char[]  channel,
char[]  element,
long  time
[inline]
 

Add a cache lock where the entry is invalid or unlocked. Returns true if locked by this call, false otherwise. Note that this will return false if the entry is already locked.

Definition at line 156 of file ClusterCache.d.

References addCache(), defaultSize, ChannelCache::lockWhereInvalid(), and lookup().

Referenced by CacheServer::LoaderThread::load().

void unlock char[]  channel,
char[]  element
[inline]
 

Definition at line 171 of file ClusterCache.d.

References lookup(), and ChannelCache::unlock().

Referenced by CacheServer::LoaderThread::load().


Member Data Documentation

Cluster cluster [private]
 

Definition at line 67 of file ClusterCache.d.

Referenced by addCache(), and this().

HashMap cacheSet [private]
 

Definition at line 68 of file ClusterCache.d.

Referenced by addCache(), and lookup().

uint defaultSize [private]
 

Definition at line 69 of file ClusterCache.d.

Referenced by lockWhereInvalid(), put(), and this().


The documentation for this class was generated from the following file:
Generated on Fri May 27 18:11:59 2005 for Mango by  doxygen 1.4.0