org.mmbase.cache
Class MultilevelCacheHandler

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.mmbase.util.LRUHashtable
                    |
                    +--org.mmbase.cache.MultilevelCacheHandler
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class MultilevelCacheHandler
extends LRUHashtable

This object handles cache multilevel tag cache requests. it removed invalid lines adding listeners to builders used in the multilevel query's

Author:
Daniel Ockeloen
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
MultilevelCacheHandler(java.lang.String name, int size)
           
 
Method Summary
 java.lang.Integer calcHashMultiLevel(StringTagger tagger)
          support methode, creates a hashcode for all the parameters in a multilevel request comming from the mmci
 void callbackRemove(java.lang.Object key)
           
 java.lang.Object get(java.lang.Object key)
          Retrieve an element from the table.
static MultilevelCacheHandler getCache(java.lang.String name)
           
static boolean isActive()
           
 java.lang.Object put(java.lang.Object hash, java.lang.Object o, java.util.Vector types, StringTagger tagger)
           
 java.lang.Object remove(java.lang.Object key)
          Remove an element from the table.
static void setMMBase(MMBase m)
           
static void setState(boolean s)
           
 
Methods inherited from class org.mmbase.util.LRUHashtable
clear, clone, contains, containsKey, elements, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getPuts, getRatio, getSize, getStats, isEmpty, keys, put, setSize, size, toString, toString
 
Methods inherited from class java.util.Hashtable
containsValue, entrySet, equals, hashCode, keySet, putAll, rehash, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultilevelCacheHandler

public MultilevelCacheHandler(java.lang.String name,
                              int size)
Method Detail

put

public java.lang.Object put(java.lang.Object hash,
                            java.lang.Object o,
                            java.util.Vector types,
                            StringTagger tagger)

setMMBase

public static void setMMBase(MMBase m)

getCache

public static MultilevelCacheHandler getCache(java.lang.String name)

get

public java.lang.Object get(java.lang.Object key)
Description copied from class: LRUHashtable
Retrieve an element from the table.
Overrides:
get in class LRUHashtable
Following copied from class: org.mmbase.util.LRUHashtable
Returns:
the value of the element, or null if it could not be found

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from class: LRUHashtable
Remove an element from the table.
Overrides:
remove in class LRUHashtable
Following copied from class: org.mmbase.util.LRUHashtable
Returns:
the original value of the element if it existed, null if it could not be found

callbackRemove

public void callbackRemove(java.lang.Object key)

calcHashMultiLevel

public java.lang.Integer calcHashMultiLevel(StringTagger tagger)
support methode, creates a hashcode for all the parameters in a multilevel request comming from the mmci

setState

public static void setState(boolean s)

isActive

public static boolean isActive()


MMBase 2002