org.jboss.ejb.plugins
Class StatefulSessionInstanceCache
java.lang.Object
|
+--org.jboss.ejb.plugins.AbstractInstanceCache
|
+--org.jboss.ejb.plugins.StatefulSessionInstanceCache
- All Implemented Interfaces:
- ContainerPlugin, InstanceCache, MetricsConstants, Monitorable, Service, XmlLoadable
- public class StatefulSessionInstanceCache
- extends AbstractInstanceCache
Cache for stateful session beans.
- Version:
- $Revision: 1.7.2.2 $
- Author:
- Simone Bordet, Sebastien Alborini
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 |
Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
createMessage, destroy, get, getCache, getCacheLock, importXml, init, insert, isActive, isJMSMonitoringEnabled, logActivation, logPassivation, logPassivationPostponed, logPassivationScheduled, release, remove, resetStatistic, retrieveStatistic, sample, schedulePassivation, sendMessage, setJMSMonitoringEnabled, start, stop, unschedulePassivation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulSessionInstanceCache
public StatefulSessionInstanceCache()
setContainer
public void setContainer(Container c)
- Description copied from interface:
ContainerPlugin
- This callback is set by the container so that the plugin may access it
- Following copied from interface:
org.jboss.ejb.ContainerPlugin
- Parameters:
con
- the container using this plugin
getContainer
protected Container getContainer()
- Description copied from class:
AbstractInstanceCache
- Returns the container for this cache.
- Overrides:
getContainer
in class AbstractInstanceCache
passivate
protected void passivate(EnterpriseContext ctx)
throws java.rmi.RemoteException
- Description copied from class:
AbstractInstanceCache
- Passivates the given EnterpriseContext
- Overrides:
passivate
in class AbstractInstanceCache
activate
protected void activate(EnterpriseContext ctx)
throws java.rmi.RemoteException
- Description copied from class:
AbstractInstanceCache
- Activates the given EnterpriseContext
- Overrides:
activate
in class AbstractInstanceCache
acquireContext
protected EnterpriseContext acquireContext()
throws java.lang.Exception
- Description copied from class:
AbstractInstanceCache
- Acquires an EnterpriseContext from the pool
- Overrides:
acquireContext
in class AbstractInstanceCache
freeContext
protected void freeContext(EnterpriseContext ctx)
- Description copied from class:
AbstractInstanceCache
- Frees the given EnterpriseContext to the pool
- Overrides:
freeContext
in class AbstractInstanceCache
getKey
protected java.lang.Object getKey(EnterpriseContext ctx)
- Description copied from class:
AbstractInstanceCache
- Returns the key used by the cache to map the given context
- Overrides:
getKey
in class AbstractInstanceCache
setKey
protected void setKey(java.lang.Object id,
EnterpriseContext ctx)
- Description copied from class:
AbstractInstanceCache
- Sets the given id as key for the given context
- Overrides:
setKey
in class AbstractInstanceCache
canPassivate
protected boolean canPassivate(EnterpriseContext ctx)
- Description copied from class:
AbstractInstanceCache
- Returns whether the given context can be passivated or not
- Overrides:
canPassivate
in class AbstractInstanceCache
Copyright © 2000 The JBoss Organization. All Rights Reserved.