Main Page | Class Hierarchy | Alphabetical List | Class List | 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 62 of file ClusterCache.d.


Member Function Documentation

this Cluster  cluster,
uint  defaultSize
[inline]
 

Definition at line 72 of file ClusterCache.d.

References defaultSize, and HashMap.

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

Definition at line 83 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 92 of file ClusterCache.d.

References cacheSet, and HashMap::put().

Referenced by lockWhereInvalid(), and put().

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

Definition at line 107 of file ClusterCache.d.

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

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

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

Definition at line 121 of file ClusterCache.d.

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

Referenced by ClusterThread::run().

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

Definition at line 135 of file ClusterCache.d.

References ClusterContent, 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 153 of file ClusterCache.d.

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

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

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

Definition at line 168 of file ClusterCache.d.

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

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


Member Data Documentation

Cluster cluster [private]
 

Definition at line 64 of file ClusterCache.d.

HashMap cacheSet [private]
 

Definition at line 65 of file ClusterCache.d.

Referenced by addCache(), and lookup().

uint defaultSize [private]
 

Definition at line 66 of file ClusterCache.d.

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


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:00 2004 for Mango by doxygen 1.3.6