|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.cache.oscache.OSCacheImplementation
Implementation of the MMBase 'CacheImplementationInterface' interface, which delegates all calls to an OSCache implementation. This implementation accepts the following configuration properties:
<cache name="NodeListCache">
<status>active</status>
<size>3</size>
<implementation>
<class>org.mmbase.cache.oscache.OSCacheImplementation</class>
<param name="path">/tmp</param>
</implementation>
</cache>
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Constructor Summary | |
OSCacheImplementation()
|
|
| Method Summary | |
void |
clear()
Wrapper around the clear() method of the cache implementation. |
void |
config(Map config)
This method is called by MMBase to configure the cache using the given map of configuration parameters. |
boolean |
containsKey(Object key)
Wrapper around the containsKey() method of the cache implementation. |
boolean |
containsValue(Object value)
Wrapper around the containsValue() method of the cache implementation. |
Set |
entrySet()
Wrapper around the entrySet() method of the cache implementation. |
boolean |
equals(Object o)
Wrapper around the equals() method of the cache implementation. |
Object |
get(Object key)
Wrapper around the get() method of the cache implementation. |
int |
getByteSize()
|
int |
getByteSize(SizeOf sizeof)
|
int |
getCount(Object key)
Wrapper around the getCount() method of the cache implementation. |
int |
hashCode()
Wrapper around the hashCode() method of the cache implementation. |
boolean |
isEmpty()
Wrapper around the isEmpty() method of the cache implementation. |
Set |
keySet()
Wrapper around the keySet() method of the cache implementation. |
int |
maxSize()
Wrapper around the getMaxEntries() method of the cache implementation. |
Object |
put(Object key,
Object value)
Wrapper around the put() method of the cache implementation. |
void |
putAll(Map t)
Wrapper around the putAll() method of the cache implementation. |
Object |
remove(Object key)
Wrapper around the remove() method of the cache implementation. |
void |
setMaxSize(int size)
Wrapper around the setMaxEntries() method of the cache implementation. |
int |
size()
Wrapper around the size() method of the cache implementation. |
Collection |
values()
Wrapper around the values() method of the cache implementation. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OSCacheImplementation()
| Method Detail |
public void config(Map config)
config in interface CacheImplementationInterfacepublic void setMaxSize(int size)
setMaxSize in interface CacheImplementationInterfacepublic int maxSize()
maxSize in interface CacheImplementationInterfacepublic int getCount(Object key)
getCount in interface CacheImplementationInterfacepublic void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set entrySet()
entrySet in interface Mappublic boolean equals(Object o)
equals in interface Mappublic Object get(Object key)
get in interface Mappublic int hashCode()
hashCode in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
keySet in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic void putAll(Map t)
putAll in interface Mappublic Object remove(Object key)
remove in interface Mappublic int size()
size in interface Mappublic Collection values()
values in interface Mappublic int getByteSize()
SizeMeasurable.getByteSize()public int getByteSize(SizeOf sizeof)
SizeMeasurable.getByteSize(org.mmbase.util.SizeOf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||