org.mmbase.cache
Class NodeCache

java.lang.Object
  extended by org.mmbase.cache.Cache<Integer,MMObjectNode>
      extended by org.mmbase.cache.NodeCache
All Implemented Interfaces:
Map<Integer,MMObjectNode>, CacheMBean, EventListener, NodeEventListener, SizeMeasurable

public class NodeCache
extends Cache<Integer,MMObjectNode>
implements NodeEventListener

A cache for MMObjectNodes.

Version:
$Id: NodeCache.java 38757 2009-09-22 10:52:46Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.mmbase.cache.Cache
lock, maxEntrySize
 
Method Summary
static NodeCache getCache()
           
 String getDescription()
          Gives a description for this cache type.
 String getName()
          Returns a name for this cache type.
 void notify(NodeEvent event)
           
protected  void purge()
           
 
Methods inherited from class org.mmbase.cache.Cache
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, put, putAll, putCache, remove, reset, setActive, setImplementation, setMaxEntrySize, setMaxSize, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCache

public static NodeCache getCache()

getName

public String getName()
Description copied from class: Cache
Returns a name for this cache type. Default it is the class name, but this normally will be overriden.

Specified by:
getName in interface CacheMBean
Overrides:
getName in class Cache<Integer,MMObjectNode>

getDescription

public String getDescription()
Description copied from class: Cache
Gives a description for this cache type. This can be used in cache overviews.

Specified by:
getDescription in interface CacheMBean
Overrides:
getDescription in class Cache<Integer,MMObjectNode>

purge

protected void purge()

notify

public void notify(NodeEvent event)
Specified by:
notify in interface NodeEventListener


MMBase 2.0-SNAPSHOT - null