|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.plugins.AbstractInstanceCache (src)
org.jboss.ejb.plugins.StatefulSessionInstanceCache
Cache for stateful session beans.
Field Summary |
Fields inherited from class org.jboss.ejb.plugins.AbstractInstanceCache (src) |
log |
Fields inherited from interface org.jboss.monitor.MetricsConstants (src) |
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 (src) |
acquireContext()
Acquires an EnterpriseContext from the pool |
protected void |
activate(EnterpriseContext (src) ctx)
Activates the given EnterpriseContext |
protected boolean |
canPassivate(EnterpriseContext (src) ctx)
Returns whether the given context can be passivated or not |
void |
destroy()
destroy the service, tear down |
protected boolean |
doActivate(EnterpriseContext (src) ctx)
Activate the given EnterpriseContext |
protected void |
freeContext(EnterpriseContext (src) ctx)
Frees the given EnterpriseContext to the pool |
protected Container (src) |
getContainer()
Returns the container for this cache. |
protected java.lang.Object |
getKey(EnterpriseContext (src) ctx)
Returns the key used by the cache to map the given context |
long |
getPassivatedCount()
Get the passivated count. |
protected void |
passivate(EnterpriseContext (src) ctx)
Passivates the given EnterpriseContext |
protected void |
postRemovalCleanup(java.lang.Object key)
|
protected void |
preRemovalPreparation(java.lang.Object key)
|
protected void |
removePassivated(long maxLifeAfterPassivation)
Remove all passivated instances that have been inactive too long. |
void |
setContainer(Container (src) c)
This callback is set by the container so that the plugin may access it |
protected void |
setKey(java.lang.Object id,
EnterpriseContext (src) ctx)
Sets the given id as key for the given context |
Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache (src) |
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 class AbstractInstanceCache (src)
public void setContainer(Container (src) c)
ContainerPlugin (src)
c
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void destroy()
Service (src)
destroy
in interface Service (src)
destroy
in class AbstractInstanceCache (src)
protected Container (src) getContainer()
AbstractInstanceCache (src)
getContainer
in class AbstractInstanceCache (src)
protected void passivate(EnterpriseContext (src) ctx) throws java.rmi.RemoteException
AbstractInstanceCache (src)
passivate
in class AbstractInstanceCache (src)
java.rmi.RemoteException
protected void activate(EnterpriseContext (src) ctx) throws java.rmi.RemoteException
AbstractInstanceCache (src)
activate
in class AbstractInstanceCache (src)
java.rmi.RemoteException
protected boolean doActivate(EnterpriseContext (src) ctx) throws java.rmi.RemoteException
AbstractInstanceCache (src)
doActivate
in class AbstractInstanceCache (src)
ctx
- the context
java.rmi.RemoteException
- for any errorprotected EnterpriseContext (src) acquireContext() throws java.lang.Exception
AbstractInstanceCache (src)
acquireContext
in class AbstractInstanceCache (src)
java.lang.Exception
protected void freeContext(EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
freeContext
in class AbstractInstanceCache (src)
protected java.lang.Object getKey(EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
getKey
in class AbstractInstanceCache (src)
protected void setKey(java.lang.Object id, EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
setKey
in class AbstractInstanceCache (src)
protected boolean canPassivate(EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
canPassivate
in class AbstractInstanceCache (src)
protected void removePassivated(long maxLifeAfterPassivation)
maxLifeAfterPassivation
- the upper bound in milliseconds that an
inactive session will be kept.protected void preRemovalPreparation(java.lang.Object key)
protected void postRemovalCleanup(java.lang.Object key)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |