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:
- AllowedOperationsFlags, ContainerPlugin, EntityCache, InstanceCache, AbstractInstanceCacheMBean, EntityInstanceCacheMBean, org.jboss.ha.framework.interfaces.DistributedState.DSListenerEx, XmlLoadable, MetricsConstants, Monitorable, Service
public class ClusterSyncEntityInstanceCache
- extends EntityInstanceCache
- implements org.jboss.ha.framework.interfaces.DistributedState.DSListenerEx
Cache subclass for entity beans shared accross a cluster with
distributed cache corruption mechanism.
- Version:
- $Revision: 81001 $
- Author:
- Sacha Labourey
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, removeTimerServiceIfAllCancelledOrExpired, setContainer, setKey, unableToPassivateDueToCtxLock |
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, tryToPassivate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ds
protected org.jboss.ha.framework.interfaces.DistributedState ds
DS_CATEGORY
protected String DS_CATEGORY
ClusterSyncEntityInstanceCache
public ClusterSyncEntityInstanceCache()
create
public void create()
throws Exception
- Specified by:
create
in interface Service
- Overrides:
create
in class AbstractInstanceCache
- Throws:
Exception
start
public void start()
throws Exception
- Specified by:
start
in interface Service
- Overrides:
start
in class AbstractInstanceCache
- Throws:
Exception
stop
public void stop()
- Specified by:
stop
in interface Service
- Overrides:
stop
in class AbstractInstanceCache
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 org.jboss.ha.framework.interfaces.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 org.jboss.ha.framework.interfaces.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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.