|
||||||||||
| 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.EntityInstanceCache
Cache subclass for entity 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 | |
EntityInstanceCache()
|
|
| 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 |
java.lang.Object |
createCacheKey(java.lang.Object id)
Returns the key used to cache the context |
void |
destroy()
destroy the service, tear down |
protected void |
freeContext(EnterpriseContext (src) ctx)
Frees the given EnterpriseContext to the pool |
EnterpriseContext (src) |
get(java.lang.Object id)
Gets a bean instance from this cache given the identity. |
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 |
protected void |
passivate(EnterpriseContext (src) ctx)
Passivates the given EnterpriseContext |
void |
remove(java.lang.String id)
|
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, doActivate, flush, getCache, getCacheLock, getCachePolicyString, getCacheSize, getPassivatedCount, 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 |
| Methods inherited from interface org.jboss.ejb.InstanceCache (src) |
flush, getCacheSize, insert, isActive, release, remove |
| Methods inherited from interface org.jboss.system.Service (src) |
create, start, stop |
| Constructor Detail |
public EntityInstanceCache()
| Method Detail |
public void setContainer(Container (src) c)
ContainerPlugin (src)
setContainer in interface ContainerPlugin (src) c - The container using this plugin. This may be null if the
plugin is being disassociated from a container.public java.lang.Object createCacheKey(java.lang.Object id)
EntityCache (src)
createCacheKey in interface EntityCache (src) id - Object id / primary key
public EnterpriseContext (src) get(java.lang.Object id)
throws java.rmi.RemoteException,
java.rmi.NoSuchObjectException
InstanceCache (src) Implementation should have O(1) complexity.
This method is never called for stateless session beans.
get in interface InstanceCache (src) get in class AbstractInstanceCache (src) java.rmi.RemoteException
java.rmi.NoSuchObjectException
public void remove(java.lang.String id)
throws java.lang.Exception
java.lang.Exceptionpublic void destroy()
Service (src)
destroy in interface Service (src) destroy 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 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 EnterpriseContext (src) acquireContext()
throws java.lang.Exception
AbstractInstanceCache (src)
acquireContext in class AbstractInstanceCache (src) java.lang.Exceptionprotected void freeContext(EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
freeContext in class AbstractInstanceCache (src) protected boolean canPassivate(EnterpriseContext (src) ctx)
AbstractInstanceCache (src)
canPassivate in class AbstractInstanceCache (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||