|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.cache.invalidation.InvalidationManager
public class InvalidationManager
Implementation of InvalidationManagerMBean
InvalidationManagerMBean
Field Summary | |
---|---|
protected Vector |
bridgeSubscribers
|
static String |
DEFAULT_INVALIDERS_JMX_NAME
|
static String |
DEFAULT_JMX_SERVICE_NAME
|
protected boolean |
DEFAULT_TO_ASYNCHRONOUS_MODE
|
protected Hashtable |
groups
|
protected int |
hashcode
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
InvalidationManager()
|
Method Summary | |
---|---|
void |
batchInvalidate(BatchInvalidation[] invalidations)
Invalidate a set of IG managed by this IM. |
void |
batchInvalidate(BatchInvalidation[] invalidations,
boolean asynchronous)
Identical as previous method. |
protected void |
bridgeGroupInvalidateAllEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source,
String groupName)
|
protected void |
bridgeGroupInvalidationEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source,
String groupName,
Serializable key)
|
protected void |
bridgeGroupInvalidationEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source,
String groupName,
Serializable[] keys)
|
protected InvalidationGroup |
createGroup(String groupName)
|
protected void |
crossDomainBatchInvalidate(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source,
BatchInvalidation[] invalidations,
boolean asynchronous)
|
protected void |
crossDomainInvalidateAll(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source,
String groupName,
boolean asynchronous)
|
protected void |
doBridgedOnlyInvalidateAll(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource,
String groupName)
|
protected void |
doBridgedOnlyInvalidation(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource,
String groupName,
Serializable key)
|
protected void |
doBridgedOnlyInvalidation(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource,
String groupName,
Serializable[] keys)
|
protected void |
doLocalOnlyInvalidateAll(String groupName,
boolean asynchronous)
|
protected void |
doLocalOnlyInvalidation(String groupName,
Serializable key,
boolean asynchronous)
|
protected void |
doLocalOnlyInvalidations(String groupName,
Serializable[] keys,
boolean asynchronous)
|
InvalidationGroup |
getInvalidationGroup(String groupName)
Returns a given InvalidationGroup instance that is associated with the group name. |
Collection |
getInvalidationGroups()
Return the set of all InvalidationGroup currently managed by this IM |
boolean |
getIsAsynchByDefault()
Get the is default asynchronous replication mode flag |
int |
hashCode()
|
void |
invalidateAll(String groupName)
Invalidate all entries for the specified group name. |
void |
invalidateAll(String groupName,
boolean async)
Invalidate all entries for the specified group name using the specified mode. |
protected void |
localGroupInvalidateAllEvent(String groupName,
boolean asynchronous)
|
protected void |
localGroupInvalidationEvent(String groupName,
Serializable key,
boolean asynchronous)
|
protected void |
localGroupInvalidationsEvent(String groupName,
Serializable[] keys,
boolean asynchronous)
|
BridgeInvalidationSubscription |
registerBridgeListener(InvalidationBridgeListener listener)
Allow the subscription of a given Bridge to this IM |
protected void |
removeGroup(String groupName)
|
void |
setIsAsynchByDefault(boolean flag)
Set the is default asynchronous replication mode flag |
void |
startService()
|
void |
stopService()
|
protected void |
unregisterBridgeListener(BridgeInvalidationSubscription bridgeSubscriber)
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
public static final String DEFAULT_JMX_SERVICE_NAME
public static final String DEFAULT_INVALIDERS_JMX_NAME
protected Hashtable groups
protected Vector bridgeSubscribers
protected int hashcode
protected boolean DEFAULT_TO_ASYNCHRONOUS_MODE
Constructor Detail |
---|
public InvalidationManager()
Method Detail |
---|
public void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void stopService()
stopService
in class org.jboss.system.ServiceMBeanSupport
public boolean getIsAsynchByDefault()
InvalidationManagerMBean
getIsAsynchByDefault
in interface InvalidationManagerMBean
public void setIsAsynchByDefault(boolean flag)
InvalidationManagerMBean
setIsAsynchByDefault
in interface InvalidationManagerMBean
flag
- - true for asynch by defaultpublic Collection getInvalidationGroups()
InvalidationManagerMBean
getInvalidationGroups
in interface InvalidationManagerMBean
public InvalidationGroup getInvalidationGroup(String groupName)
InvalidationManagerMBean
getInvalidationGroup
in interface InvalidationManagerMBean
groupName
- Name of the group (of the cache for example).
public BridgeInvalidationSubscription registerBridgeListener(InvalidationBridgeListener listener)
InvalidationManagerMBean
registerBridgeListener
in interface InvalidationManagerMBean
listener
- The Bridge registring for invalidation messages
BridgeInvalidationSubscription
public void batchInvalidate(BatchInvalidation[] invalidations)
InvalidationManagerMBean
batchInvalidate
in interface InvalidationManagerMBean
invalidations
- A set of BatchcInvalidations. Each BatchInvalidation instance contains invalidations
for a given InvalidationGroup.public void batchInvalidate(BatchInvalidation[] invalidations, boolean asynchronous)
InvalidationManagerMBean
batchInvalidate
in interface InvalidationManagerMBean
invalidations
- Invalidation messagesasynchronous
- Indicates if the briges should try to do asynchronous invalidations (accross the
network for example) or if a synchronous behaviour is required.public void invalidateAll(String groupName)
InvalidationManagerMBean
invalidateAll
in interface InvalidationManagerMBean
groupName
- invalidation group namepublic void invalidateAll(String groupName, boolean async)
InvalidationManagerMBean
invalidateAll
in interface InvalidationManagerMBean
groupName
- invalidate group nameasync
- modepublic int hashCode()
hashCode
in class Object
protected InvalidationGroup createGroup(String groupName)
protected void removeGroup(String groupName)
protected void unregisterBridgeListener(BridgeInvalidationSubscription bridgeSubscriber)
protected void doLocalOnlyInvalidation(String groupName, Serializable key, boolean asynchronous)
protected void doLocalOnlyInvalidations(String groupName, Serializable[] keys, boolean asynchronous)
protected void doLocalOnlyInvalidateAll(String groupName, boolean asynchronous)
protected void doBridgedOnlyInvalidation(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource, String groupName, Serializable key)
protected void doBridgedOnlyInvalidation(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource, String groupName, Serializable[] keys)
protected void doBridgedOnlyInvalidateAll(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl exceptSource, String groupName)
protected void localGroupInvalidationEvent(String groupName, Serializable key, boolean asynchronous)
protected void localGroupInvalidationsEvent(String groupName, Serializable[] keys, boolean asynchronous)
protected void localGroupInvalidateAllEvent(String groupName, boolean asynchronous)
protected void bridgeGroupInvalidationEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source, String groupName, Serializable key)
protected void bridgeGroupInvalidationEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source, String groupName, Serializable[] keys)
protected void bridgeGroupInvalidateAllEvent(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source, String groupName)
protected void crossDomainBatchInvalidate(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source, BatchInvalidation[] invalidations, boolean asynchronous)
protected void crossDomainInvalidateAll(org.jboss.cache.invalidation.InvalidationManager.BridgeInvalidationSubscriptionImpl source, String groupName, boolean asynchronous)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |