org.apache.geronimo.openejb.cluster.stateful.container
Class WadiCache

java.lang.Object
  extended by org.apache.geronimo.openejb.cluster.stateful.container.WadiCache
All Implemented Interfaces:
SessionManagerTracker, org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

public class WadiCache
extends Object
implements org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>, SessionManagerTracker

Version:
$Rev:$ $Date:$

Nested Class Summary
protected  class WadiCache.MigrationListener
           
 
Nested classes/interfaces inherited from interface org.apache.openejb.core.stateful.Cache
org.apache.openejb.core.stateful.Cache.CacheFilter<V>, org.apache.openejb.core.stateful.Cache.CacheListener<V>
 
Field Summary
static String SESSION_KEY_ENTRY
           
 
Constructor Summary
WadiCache()
           
WadiCache(org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> listener)
           
 
Method Summary
 void add(Object primaryKey, org.apache.openejb.core.stateful.Instance instance)
           
 void addSessionManager(Object deploymentId, SessionManager sessionManager)
           
 void checkIn(Object primaryKey)
           
 org.apache.openejb.core.stateful.Instance checkOut(Object primaryKey)
           
 org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> getListener()
           
 SessionManager getSessionManager(Object deploymentId)
           
protected  org.apache.geronimo.openejb.cluster.stateful.container.WadiCache.WadiInstance getWadiInstance(Session session)
           
 org.apache.openejb.core.stateful.Instance remove(Object primaryKey)
           
 void removeAll(org.apache.openejb.core.stateful.Cache.CacheFilter<org.apache.openejb.core.stateful.Instance> filter)
           
 void removeSessionManager(Object deploymentId, SessionManager sessionManager)
           
 void setListener(org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_KEY_ENTRY

public static final String SESSION_KEY_ENTRY
See Also:
Constant Field Values
Constructor Detail

WadiCache

public WadiCache()

WadiCache

public WadiCache(org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> listener)
Method Detail

getListener

public org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> getListener()
Specified by:
getListener in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

setListener

public void setListener(org.apache.openejb.core.stateful.Cache.CacheListener<org.apache.openejb.core.stateful.Instance> listener)
Specified by:
setListener in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

getSessionManager

public SessionManager getSessionManager(Object deploymentId)

addSessionManager

public void addSessionManager(Object deploymentId,
                              SessionManager sessionManager)
Specified by:
addSessionManager in interface SessionManagerTracker

removeSessionManager

public void removeSessionManager(Object deploymentId,
                                 SessionManager sessionManager)
Specified by:
removeSessionManager in interface SessionManagerTracker

add

public void add(Object primaryKey,
                org.apache.openejb.core.stateful.Instance instance)
Specified by:
add in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

checkOut

public org.apache.openejb.core.stateful.Instance checkOut(Object primaryKey)
                                                   throws Exception
Specified by:
checkOut in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>
Throws:
Exception

checkIn

public void checkIn(Object primaryKey)
Specified by:
checkIn in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

remove

public org.apache.openejb.core.stateful.Instance remove(Object primaryKey)
Specified by:
remove in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

removeAll

public void removeAll(org.apache.openejb.core.stateful.Cache.CacheFilter<org.apache.openejb.core.stateful.Instance> filter)
Specified by:
removeAll in interface org.apache.openejb.core.stateful.Cache<Object,org.apache.openejb.core.stateful.Instance>

getWadiInstance

protected org.apache.geronimo.openejb.cluster.stateful.container.WadiCache.WadiInstance getWadiInstance(Session session)


Copyright © 2003-2009 The Apache Geronimo development community. All Rights Reserved.