|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jboss.ejb.plugins.AbstractInstanceCache
|
+--org.jboss.ejb.plugins.EntityInstanceCache
Cache subclass for entity beans.
| Inner classes inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
AbstractInstanceCache.PassivationHelper |
| 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 | |
EntityInstanceCache()
|
|
| 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 |
java.lang.Object |
createCacheKey(java.lang.Object id)
Returns the key used to cache the context |
protected void |
freeContext(EnterpriseContext ctx)
Frees the given EnterpriseContext to the pool |
EnterpriseContext |
get(java.lang.Object id)
Gets a bean instance from this cache given the identity. |
protected Container |
getContainer()
Returns the container for this cache. |
protected java.lang.Object |
getKey(EnterpriseContext ctx)
Returns the key used by the cache to map the given context |
Sync |
getLock(java.lang.Object id)
Creates (if necessary) and returns an object used as mutex to sync passivation activity with other activities, in particular incoming invoking calls. |
protected void |
passivate(EnterpriseContext ctx)
Passivates the given EnterpriseContext |
void |
remove(java.lang.Object id)
Removes a bean instance from this cache given the identity. |
protected void |
removeLock(java.lang.Object id)
Removes the mutex associated with the given id. |
void |
setContainer(Container c)
This callback is set by the container so that the plugin may access it |
protected void |
setKey(java.lang.Object id,
EnterpriseContext ctx)
Sets the given id as key for the given context |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
createMessage, destroy, getCache, getCacheLock, importXml, init, insert, isActive, isJMSMonitoringEnabled, logActivation, logPassivation, logPassivationPostponed, logPassivationScheduled, release, 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 |
| Methods inherited from interface org.jboss.ejb.InstanceCache |
insert, isActive, release |
| Methods inherited from interface org.jboss.util.Service |
destroy, init, start, stop |
| Constructor Detail |
public EntityInstanceCache()
| Method Detail |
public void setContainer(Container c)
ContainerPluginsetContainer in interface ContainerPluginorg.jboss.ejb.ContainerPlugincon - the container using this pluginpublic java.lang.Object createCacheKey(java.lang.Object id)
EntityCachecreateCacheKey in interface EntityCacheorg.jboss.ejb.EntityCacheid - Object id / primary key
public EnterpriseContext get(java.lang.Object id)
throws java.rmi.RemoteException,
java.rmi.NoSuchObjectException
InstanceCacheget in interface InstanceCacheget in class AbstractInstanceCacheorg.jboss.ejb.InstanceCacheid - the primary key of the beanjava.rmi.RemoteException - in case of illegal calls (concurrent / reentrant),
NoSuchObjectException if the bean cannot be found.InstanceCache.release(org.jboss.ejb.EnterpriseContext)public void remove(java.lang.Object id)
InstanceCacheremove in interface InstanceCacheremove in class AbstractInstanceCacheorg.jboss.ejb.InstanceCacheid - the pimary key of the beanInstanceCache.insert(org.jboss.ejb.EnterpriseContext)public Sync getLock(java.lang.Object id)
AbstractInstanceCacheAbstractInstanceCache.removeLock(java.lang.Object).getLock in class AbstractInstanceCacheprotected void removeLock(java.lang.Object id)
AbstractInstanceCacheAbstractInstanceCache.getLock(java.lang.Object).removeLock in class AbstractInstanceCacheprotected java.lang.Object getKey(EnterpriseContext ctx)
AbstractInstanceCachegetKey in class AbstractInstanceCache
protected void setKey(java.lang.Object id,
EnterpriseContext ctx)
AbstractInstanceCachesetKey in class AbstractInstanceCacheprotected Container getContainer()
AbstractInstanceCachegetContainer in class AbstractInstanceCache
protected void passivate(EnterpriseContext ctx)
throws java.rmi.RemoteException
AbstractInstanceCachepassivate in class AbstractInstanceCache
protected void activate(EnterpriseContext ctx)
throws java.rmi.RemoteException
AbstractInstanceCacheactivate in class AbstractInstanceCache
protected EnterpriseContext acquireContext()
throws java.lang.Exception
AbstractInstanceCacheacquireContext in class AbstractInstanceCacheprotected void freeContext(EnterpriseContext ctx)
AbstractInstanceCachefreeContext in class AbstractInstanceCacheprotected boolean canPassivate(EnterpriseContext ctx)
AbstractInstanceCachecanPassivate in class AbstractInstanceCache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||