|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.AbstractInstanceCache
org.jboss.ejb.plugins.StatefulSessionInstanceCache
Cache for stateful session beans.
| Field Summary |
| Fields inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
log |
| Fields inherited from interface org.jboss.monitor.MetricsConstants |
ACTIVITY, APPLICATION, BEAN, BEANCACHE_METRICS, CHECKPOINT, INVOCATION_METRICS, MEMORY_MONITOR, METHOD, PRIMARY_KEY, SYSTEM_METRICS, THREAD_MONITOR, TIME, TYPE |
| Constructor Summary | |
StatefulSessionInstanceCache()
|
|
| Method Summary | |
protected EnterpriseContext |
acquireContext()
Acquires an EnterpriseContext from the pool |
protected void |
activate(EnterpriseContext ctx)
Activates the given EnterpriseContext |
protected boolean |
canPassivate(EnterpriseContext ctx)
Returns whether the given context can be passivated or not |
void |
destroy()
|
protected boolean |
doActivate(EnterpriseContext ctx)
Activate the given EnterpriseContext |
protected void |
freeContext(EnterpriseContext ctx)
Frees the given EnterpriseContext to the pool |
protected Container |
getContainer()
Returns the container for this cache. |
protected Object |
getKey(EnterpriseContext ctx)
Returns the key used by the cache to map the given context |
long |
getPassivatedCount()
Get the passivated count. |
protected void |
passivate(EnterpriseContext ctx)
Passivates the given EnterpriseContext |
protected void |
postRemovalCleanup(Object key)
|
protected void |
preRemovalPreparation(Object key)
|
protected void |
removePassivated(long maxLifeAfterPassivation)
Remove all passivated instances that have been inactive too long. |
void |
setContainer(Container c)
This callback is set by the container so that the plugin may access it |
protected void |
setKey(Object id,
EnterpriseContext ctx)
Sets the given id as key for the given context |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
create, flush, get, getCache, getCacheLock, getCachePolicyString, getCacheSize, importXml, insert, isActive, logActivation, logPassivation, release, remove, resetStatistic, retrieveStatistic, sample, start, stop, tryToPassivate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StatefulSessionInstanceCache()
| Method Detail |
public long getPassivatedCount()
getPassivatedCount in interface AbstractInstanceCacheMBeangetPassivatedCount in class AbstractInstanceCachepublic void setContainer(Container c)
ContainerPlugin
c - The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void destroy()
destroy in interface org.jboss.system.Servicedestroy in class AbstractInstanceCacheprotected Container getContainer()
AbstractInstanceCache
getContainer in class AbstractInstanceCache
protected void passivate(EnterpriseContext ctx)
throws RemoteException
AbstractInstanceCache
passivate in class AbstractInstanceCacheRemoteException
protected void activate(EnterpriseContext ctx)
throws RemoteException
AbstractInstanceCache
activate in class AbstractInstanceCacheRemoteException
protected boolean doActivate(EnterpriseContext ctx)
throws RemoteException
AbstractInstanceCache
doActivate in class AbstractInstanceCachectx - the context
RemoteException - for any error
protected EnterpriseContext acquireContext()
throws Exception
AbstractInstanceCache
acquireContext in class AbstractInstanceCacheExceptionprotected void freeContext(EnterpriseContext ctx)
AbstractInstanceCache
freeContext in class AbstractInstanceCacheprotected Object getKey(EnterpriseContext ctx)
AbstractInstanceCache
getKey in class AbstractInstanceCache
protected void setKey(Object id,
EnterpriseContext ctx)
AbstractInstanceCache
setKey in class AbstractInstanceCacheprotected boolean canPassivate(EnterpriseContext ctx)
AbstractInstanceCache
canPassivate in class AbstractInstanceCacheprotected void removePassivated(long maxLifeAfterPassivation)
maxLifeAfterPassivation - the upper bound in milliseconds that an
inactive session will be kept.protected void preRemovalPreparation(Object key)
protected void postRemovalCleanup(Object key)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||