当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
ClusterSyncEntityInstanceCache (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
org.jboss.ejb.plugins
Class ClusterSyncEntityInstanceCache
java.lang.Object
org.jboss.ejb.plugins.AbstractInstanceCache
org.jboss.ejb.plugins.EntityInstanceCache
org.jboss.ejb.plugins.ClusterSyncEntityInstanceCache
- All Implemented Interfaces:
- org.jboss.ejb.plugins.AbstractInstanceCacheMBean, org.jboss.ejb.AllowedOperationsFlags, org.jboss.ejb.ContainerPlugin, DistributedState.DSListenerEx, org.jboss.ejb.EntityCache, org.jboss.ejb.plugins.EntityInstanceCacheMBean, org.jboss.ejb.InstanceCache, org.jboss.monitor.MetricsConstants, org.jboss.monitor.Monitorable, org.jboss.system.Service, org.jboss.metadata.XmlLoadable
- public class ClusterSyncEntityInstanceCache
- extends org.jboss.ejb.plugins.EntityInstanceCache
- implements DistributedState.DSListenerEx
Cache subclass for entity beans shared accross a cluster with
distributed cache corruption mechanism.
- Version:
- $Revision: 1.6 $
- Author:
- Sacha Labourey
Fields inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
log |
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags |
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED |
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.EntityInstanceCache |
acquireContext, activate, canPassivate, createCacheKey, destroy, freeContext, get, getContainer, getKey, passivate, remove, setContainer, setKey |
Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache |
doActivate, flush, getCache, getCacheLock, getCachePolicyString, getCacheSize, getPassivatedCount, importXml, insert, isActive, logActivation, logPassivation, release, remove, resetStatistic, retrieveStatistic, sample, 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 |
flush, getCacheSize, insert, isActive, release, remove |
Methods inherited from interface org.jboss.ejb.plugins.AbstractInstanceCacheMBean |
flush, getCachePolicyString, getCacheSize, getPassivatedCount, remove |
ds
protected DistributedState ds
DS_CATEGORY
protected String DS_CATEGORY
ClusterSyncEntityInstanceCache
public ClusterSyncEntityInstanceCache()
create
public void create()
throws Exception
- Specified by:
create
in interface org.jboss.system.Service
- Throws:
Exception
start
public void start()
throws Exception
- Specified by:
start
in interface org.jboss.system.Service
- Throws:
Exception
stop
public void stop()
- Specified by:
stop
in interface org.jboss.system.Service
keyHasBeenRemoved
public void keyHasBeenRemoved(String category,
Serializable key,
Serializable previousContent,
boolean locallyModified)
- Called whenever a key has been removed from a category the called object had
subscribed in.
- Specified by:
keyHasBeenRemoved
in interface DistributedState.DSListenerEx
- Parameters:
category
- The category under which a key has been removedkey
- The key that has been removedpreviousContent
- The previous content of the key that has been removed
valueHasChanged
public void valueHasChanged(String category,
Serializable key,
Serializable value,
boolean locallyModified)
- Called whenever a key has been added or modified in the category the called object
has subscribed in.
- Specified by:
valueHasChanged
in interface DistributedState.DSListenerEx
- Parameters:
category
- The category of the modified/added entrykey
- The key that has been added or its value modifiedvalue
- The new value of the key
cacheMiss
public void cacheMiss(String key)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.