|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge
JGroups implementation of a cache invalidation bridge
JGCacheInvalidationBridgeMBean
(src) Field Summary | |
protected java.util.Vector |
bridgedGroups
|
protected java.lang.String |
bridgeName
|
protected DistributedReplicantManager (src) |
drm
|
protected DistributedState (src) |
ds
|
protected java.lang.String |
invalidationManagerName
|
protected BridgeInvalidationSubscription (src) |
invalidationSubscription
|
protected InvalidationManagerMBean (src) |
invalMgr
|
protected java.util.Collection |
localGroups
|
protected java.lang.String |
nodeName
|
protected HAPartition (src) |
partition
|
protected java.lang.String |
partitionName
|
protected java.lang.Class[] |
rpc_batch_invalidate_types
|
protected java.lang.String |
RPC_HANLE_NAME
|
protected java.lang.Class[] |
rpc_invalidate_all_types
|
protected java.lang.Class[] |
rpc_invalidate_types
|
protected java.lang.Class[] |
rpc_invalidates_types
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JGCacheInvalidationBridge()
|
Method Summary | |
protected void |
_do_rpc_batchInvalidate(BatchInvalidation (src) [] invalidations,
boolean asynch)
|
protected void |
_do_rpc_invalidate_all(java.lang.String invalidationGroupName,
boolean asynch)
|
protected void |
_do_rpc_invalidate(java.lang.String invalidationGroupName,
java.io.Serializable key,
boolean asynch)
|
protected void |
_do_rpc_invalidates(java.lang.String invalidationGroupName,
java.io.Serializable[] keys,
boolean asynch)
|
void |
_rpc_batchInvalidate(BatchInvalidation (src) [] invalidations)
|
void |
_rpc_invalidate_all(java.lang.String invalidationGroupName)
|
void |
_rpc_invalidate(java.lang.String invalidationGroupName,
java.io.Serializable key)
|
void |
_rpc_invalidates(java.lang.String invalidationGroupName,
java.io.Serializable[] keys)
|
void |
batchInvalidate(BatchInvalidation (src) [] invalidations,
boolean asynchronous)
Called when a set of invalidations, concerning more than one IG, should be forwarded accross the bridge. |
java.lang.String |
getBridgeName()
|
java.lang.String |
getInvalidationManager()
ObjectName of the InvalidationManager to be used. |
java.lang.String |
getPartitionName()
Name of the Clustering partition to be used to exchange invalidation messages and discover which caches (i.e. |
protected boolean |
groupExistsRemotely(java.lang.String groupName)
|
void |
groupIsDropped(java.lang.String groupInvalidationName)
Called when an InvocationGroup is dropped (because no cache and invalider are using it anymore). |
void |
invalidate(java.lang.String invalidationGroupName,
java.io.Serializable[] keys,
boolean asynchronous)
Called when a set of invalidations, concerning a single IG, should be forwarded accross the bridge. |
void |
invalidate(java.lang.String invalidationGroupName,
java.io.Serializable key,
boolean asynchronous)
Called when a single invalidation, concerning a single IG, should be forwarded accross the bridge. |
void |
invalidateAll(java.lang.String groupName,
boolean async)
Issues invalidate all event to other nodes. |
void |
keyHasBeenRemoved(java.lang.String category,
java.io.Serializable key,
java.io.Serializable previousContent,
boolean locallyModified)
Called whenever a key has been removed from a category the called object had subscribed in. |
void |
newGroupCreated(java.lang.String groupInvalidationName)
Called when an InvocationGroup is created. |
protected void |
publishLocalInvalidationGroups()
|
void |
replicantsChanged(java.lang.String key,
java.util.List newReplicants,
int newReplicantsViewId)
Callback called when the content/list of replicant for a given replicant key has changed |
void |
setBridgeName(java.lang.String name)
|
void |
setInvalidationManager(java.lang.String objectName)
|
void |
setPartitionName(java.lang.String partitionName)
|
void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
protected void |
updatedBridgedInvalidationGroupsInfo()
|
void |
valueHasChanged(java.lang.String category,
java.io.Serializable key,
java.io.Serializable value,
boolean locallyModified)
Called whenever a key has been added or modified in the category the called object has subscribed in. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, 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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean (src) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Field Detail |
protected java.lang.String partitionName
protected java.lang.String invalidationManagerName
protected java.lang.String bridgeName
protected HAPartition (src) partition
protected DistributedState (src) ds
protected DistributedReplicantManager (src) drm
protected java.lang.String RPC_HANLE_NAME
protected java.lang.String nodeName
protected InvalidationManagerMBean (src) invalMgr
protected BridgeInvalidationSubscription (src) invalidationSubscription
protected java.util.Collection localGroups
protected java.util.Vector bridgedGroups
protected final java.lang.Class[] rpc_invalidate_types
protected final java.lang.Class[] rpc_invalidates_types
protected final java.lang.Class[] rpc_invalidate_all_types
protected final java.lang.Class[] rpc_batch_invalidate_types
Constructor Detail |
public JGCacheInvalidationBridge()
Method Detail |
public java.lang.String getInvalidationManager()
JGCacheInvalidationBridgeMBean (src)
getInvalidationManager
in interface JGCacheInvalidationBridgeMBean (src)
public java.lang.String getPartitionName()
JGCacheInvalidationBridgeMBean (src)
getPartitionName
in interface JGCacheInvalidationBridgeMBean (src)
public void setInvalidationManager(java.lang.String objectName)
setInvalidationManager
in interface JGCacheInvalidationBridgeMBean (src)
public void setPartitionName(java.lang.String partitionName)
setPartitionName
in interface JGCacheInvalidationBridgeMBean (src)
public java.lang.String getBridgeName()
getBridgeName
in interface JGCacheInvalidationBridgeMBean (src)
public void setBridgeName(java.lang.String name)
setBridgeName
in interface JGCacheInvalidationBridgeMBean (src)
public void replicantsChanged(java.lang.String key, java.util.List newReplicants, int newReplicantsViewId)
DistributedReplicantManager.ReplicantListener (src)
replicantsChanged
in interface DistributedReplicantManager.ReplicantListener (src)
key
- The name of the key of the replicant that has changednewReplicants
- The list of new replicants for the give replicant keynewReplicantsViewId
- The new replicant view id corresponding to this changepublic void valueHasChanged(java.lang.String category, java.io.Serializable key, java.io.Serializable value, boolean locallyModified)
DistributedState.DSListenerEx (src)
valueHasChanged
in interface DistributedState.DSListenerEx (src)
category
- The category of the modified/added entrykey
- The key that has been added or its value modifiedvalue
- The new value of the keypublic void keyHasBeenRemoved(java.lang.String category, java.io.Serializable key, java.io.Serializable previousContent, boolean locallyModified)
DistributedState.DSListenerEx (src)
keyHasBeenRemoved
in interface DistributedState.DSListenerEx (src)
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 removedpublic void batchInvalidate(BatchInvalidation (src) [] invalidations, boolean asynchronous)
InvalidationBridgeListener (src)
batchInvalidate
in interface InvalidationBridgeListener (src)
invalidations
- BatchInvalidation messages containing invalidationsasynchronous
- Determine the best-effort indication to be used to communicate invalidationspublic void invalidate(java.lang.String invalidationGroupName, java.io.Serializable[] keys, boolean asynchronous)
InvalidationBridgeListener (src)
invalidate
in interface InvalidationBridgeListener (src)
invalidationGroupName
- Name of the InvalidationGroup to which is linked the invalidation messagekeys
- Keys to be invalidatedasynchronous
- Best effort communication settingpublic void invalidate(java.lang.String invalidationGroupName, java.io.Serializable key, boolean asynchronous)
InvalidationBridgeListener (src)
invalidate
in interface InvalidationBridgeListener (src)
invalidationGroupName
- InvalidationGroup namekey
- Key to be invalidatedasynchronous
- Best effort communication settingpublic void invalidateAll(java.lang.String groupName, boolean async)
InvalidationBridgeListener (src)
invalidateAll
in interface InvalidationBridgeListener (src)
groupName
- group's nameasync
- modepublic void newGroupCreated(java.lang.String groupInvalidationName)
InvalidationBridgeListener (src)
newGroupCreated
in interface InvalidationBridgeListener (src)
groupInvalidationName
- Name of the InvalidationGroup just being createdpublic void groupIsDropped(java.lang.String groupInvalidationName)
InvalidationBridgeListener (src)
groupIsDropped
in interface InvalidationBridgeListener (src)
groupInvalidationName
- Name of the InvalidationGroup being droppedpublic void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
public void stopService()
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
public void _rpc_invalidate(java.lang.String invalidationGroupName, java.io.Serializable key)
public void _rpc_invalidates(java.lang.String invalidationGroupName, java.io.Serializable[] keys)
public void _rpc_invalidate_all(java.lang.String invalidationGroupName)
public void _rpc_batchInvalidate(BatchInvalidation (src) [] invalidations)
protected void _do_rpc_invalidate(java.lang.String invalidationGroupName, java.io.Serializable key, boolean asynch)
protected void _do_rpc_invalidates(java.lang.String invalidationGroupName, java.io.Serializable[] keys, boolean asynch)
protected void _do_rpc_invalidate_all(java.lang.String invalidationGroupName, boolean asynch)
protected void _do_rpc_batchInvalidate(BatchInvalidation (src) [] invalidations, boolean asynch)
protected void publishLocalInvalidationGroups() throws java.lang.Exception
java.lang.Exception
protected void updatedBridgedInvalidationGroupsInfo()
protected boolean groupExistsRemotely(java.lang.String groupName)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |