org.mmbase.cache
Class MultilevelCache

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.mmbase.util.LRUHashtable
              extended byorg.mmbase.cache.Cache
                  extended byorg.mmbase.cache.QueryResultCache
                      extended byorg.mmbase.cache.MultilevelCache
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, SizeMeasurable

public class MultilevelCache
extends QueryResultCache

This cache handles multilevel query results from the bridge, namely only for the 'getList' functions of BasicCloud

Version:
$Id: MultilevelCache.java,v 1.5 2003/08/29 12:12:27 keesj Exp $
Author:
Daniel Ockeloen, Michiel Meeuwissen
See Also:
BasicCloud.getList(org.mmbase.bridge.Query), Serialized Form
To Do:
It is odd that this one query cache is called in the bridge implementation and not in the core.

Nested Class Summary
 
Nested classes inherited from class org.mmbase.util.LRUHashtable
LRUHashtable.LRUEntry, LRUHashtable.LRUEntrySet, LRUHashtable.LRUEntrySetIterator
 
Field Summary
 
Fields inherited from class org.mmbase.cache.Cache
maxEntrySize
 
Method Summary
static MultilevelCache getCache()
           
 java.lang.String getDescription()
          Gives a description for this cache type.
 java.lang.String getName()
          Returns a name for this cache type.
 
Methods inherited from class org.mmbase.cache.QueryResultCache
invalidateAll, put, put, remove, toString
 
Methods inherited from class org.mmbase.cache.Cache
get, getByteSize, getByteSize, getCache, getCaches, getDefaultMaxEntrySize, getMaxEntrySize, getTotalByteSize, isActive, main, putCache, putCache, setActive
 
Methods inherited from class org.mmbase.util.LRUHashtable
clear, clone, elements, entrySet, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getOrderedEntries, getOrderedEntries, getPuts, getRatio, getSize, getStats, keySet, setSize, size, toString, values
 
Methods inherited from class java.util.Hashtable
contains, containsKey, containsValue, equals, hashCode, isEmpty, keys, putAll, rehash
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCache

public static MultilevelCache getCache()

getName

public java.lang.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.

Overrides:
getName in class Cache

getDescription

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

Overrides:
getDescription in class Cache


MMBase build 1.7.1.20041002