org.castor.cache.distributed

Class EHCache

public final class EHCache extends AbstractBaseCache

EHCache implementation of Castor JDO Cache. For more details of EHCache, see http://ehcache.sourceforge.net

Since: 1.0

Version: $Revision: 6320 $ $Date: 2006-04-26 00:09:10 +0200 (Mi, 26 Apr 2006) $

Author: Werner Guttmann

See Also: the EHCache Home Page

Field Summary
static StringIMPLEMENTATION
The classname of the implementations factory class.
static StringTYPE
The type of the cache.
Method Summary
voidclear()
booleancontainsKey(Object key)
booleancontainsValue(Object value)
SetentrySet()
Objectget(Object key)
StringgetType()
voidinitialize(Properties params)
voidinitialize(String implementation, Properties params)
Normally called to initialize FKCache.
booleanisEmpty()
SetkeySet()
Objectput(Object key, Object value)
voidputAll(Map map)
Objectremove(Object key)
voidshutdown(String implementation)
Normally called to shutdown CoherenceCache.
intsize()
Collectionvalues()

Field Detail

IMPLEMENTATION

public static final String IMPLEMENTATION
The classname of the implementations factory class.

TYPE

public static final String TYPE
The type of the cache.

Method Detail

clear

public void clear()
{@inheritDoc }

See Also: java.util.Map#clear()

containsKey

public boolean containsKey(Object key)
{@inheritDoc }

See Also: java.util.Map#containsKey(java.lang.Object)

containsValue

public boolean containsValue(Object value)
{@inheritDoc }

See Also: java.util.Map#containsValue(java.lang.Object)

entrySet

public Set entrySet()
{@inheritDoc }

See Also: java.util.Map#entrySet()

get

public Object get(Object key)
{@inheritDoc }

See Also: java.util.Map#get(java.lang.Object)

getType

public String getType()
{@inheritDoc }

See Also: getType

initialize

public void initialize(Properties params)
{@inheritDoc }

See Also: initialize

initialize

public void initialize(String implementation, Properties params)
Normally called to initialize FKCache. To be able to test the method without having javax.util.jcache.CacheAccessFactory implementation, it can also be called with a test implementations classname.

Parameters: implementation Cache implementation classname to initialize. params Parameters to initialize the cache (e.g. name, capacity).

Throws: CacheAcquireException If cache can not be initialized.

isEmpty

public boolean isEmpty()
{@inheritDoc }

See Also: java.util.Map#isEmpty()

keySet

public Set keySet()
{@inheritDoc }

See Also: java.util.Map#keySet()

put

public Object put(Object key, Object value)
{@inheritDoc }

See Also: java.util.Map#put(java.lang.Object, java.lang.Object)

putAll

public void putAll(Map map)
{@inheritDoc }

See Also: java.util.Map#putAll(java.util.Map)

remove

public Object remove(Object key)
{@inheritDoc }

See Also: java.util.Map#remove(java.lang.Object)

shutdown

public void shutdown(String implementation)
Normally called to shutdown CoherenceCache. To be able to test the method without having com.tangosol.net.CacheFactory implementation, it can also be called with a test implementations classname.

Parameters: implementation Cache implementation classname to shutdown.

size

public int size()
{@inheritDoc }

See Also: java.util.Map#size()

values

public Collection values()
{@inheritDoc }

See Also: java.util.Map#values()

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com