|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge
public class JGCacheInvalidationBridge
JGroups implementation of a cache invalidation bridge
Revisions:
24 septembre 2002 Sacha Labourey:
JGCacheInvalidationBridgeMBean
Field Summary | |
---|---|
protected Vector |
bridgedGroups
|
protected String |
bridgeName
|
protected ClusterPartitionMBean |
clusterPartition
The ClusterPartition with which we are associated. |
protected DistributedReplicantManager |
drm
|
protected DistributedState |
ds
|
protected String |
invalidationManagerName
|
protected org.jboss.cache.invalidation.BridgeInvalidationSubscription |
invalidationSubscription
|
protected org.jboss.cache.invalidation.InvalidationManagerMBean |
invalMgr
|
protected Collection |
localGroups
|
protected String |
nodeName
|
protected HAPartition |
partition
|
protected String |
partitionName
|
protected Class[] |
rpc_batch_invalidate_types
|
protected String |
RPC_HANLE_NAME
|
protected Class[] |
rpc_invalidate_all_types
|
protected Class[] |
rpc_invalidate_types
|
protected Class[] |
rpc_invalidates_types
|
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 | |
---|---|
JGCacheInvalidationBridge()
|
Method Summary | |
---|---|
protected void |
_do_rpc_batchInvalidate(org.jboss.cache.invalidation.BatchInvalidation[] invalidations,
boolean asynch)
|
protected void |
_do_rpc_invalidate_all(String invalidationGroupName,
boolean asynch)
|
protected void |
_do_rpc_invalidate(String invalidationGroupName,
Serializable key,
boolean asynch)
|
protected void |
_do_rpc_invalidates(String invalidationGroupName,
Serializable[] keys,
boolean asynch)
|
void |
_rpc_batchInvalidate(org.jboss.cache.invalidation.BatchInvalidation[] invalidations)
|
void |
_rpc_invalidate_all(String invalidationGroupName)
|
void |
_rpc_invalidate(String invalidationGroupName,
Serializable key)
|
void |
_rpc_invalidates(String invalidationGroupName,
Serializable[] keys)
|
void |
batchInvalidate(org.jboss.cache.invalidation.BatchInvalidation[] invalidations,
boolean asynchronous)
|
String |
getBridgeName()
|
ClusterPartitionMBean |
getClusterPartition()
Get the underlying partition used by this service to exchange invalidation messages and discover which caches (i.e. |
String |
getInvalidationManager()
ObjectName of the InvalidationManager to be used. |
String |
getPartitionName()
Gets the name of the Clustering partition to be used to exchange invalidation messages and discover which caches (i.e. |
protected boolean |
groupExistsRemotely(String groupName)
|
void |
groupIsDropped(String groupInvalidationName)
|
void |
invalidate(String invalidationGroupName,
Serializable[] keys,
boolean asynchronous)
|
void |
invalidate(String invalidationGroupName,
Serializable key,
boolean asynchronous)
|
void |
invalidateAll(String groupName,
boolean async)
|
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. |
void |
newGroupCreated(String groupInvalidationName)
|
protected void |
publishLocalInvalidationGroups()
|
void |
replicantsChanged(String key,
List newReplicants,
int newReplicantsViewId)
Callback called when the content/list of replicant for a given replicant key has changed |
void |
setBridgeName(String name)
|
void |
setClusterPartition(ClusterPartitionMBean clusterPartition)
Sets the underlying partition used by this service to exchange invalidation messages and discover which caches (i.e. |
void |
setInvalidationManager(String objectName)
|
void |
setPartitionName(String partitionName)
Sets the name of the Clustering partition to be used to exchange invalidation messages and discover which caches (i.e. |
void |
startService()
|
void |
stopService()
|
protected void |
updatedBridgedInvalidationGroupsInfo()
|
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. |
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, hashCode, 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 |
---|
protected String partitionName
protected ClusterPartitionMBean clusterPartition
protected String invalidationManagerName
protected String bridgeName
protected HAPartition partition
protected DistributedState ds
protected DistributedReplicantManager drm
protected String RPC_HANLE_NAME
protected String nodeName
protected org.jboss.cache.invalidation.InvalidationManagerMBean invalMgr
protected org.jboss.cache.invalidation.BridgeInvalidationSubscription invalidationSubscription
protected Collection localGroups
protected Vector bridgedGroups
protected final Class[] rpc_invalidate_types
protected final Class[] rpc_invalidates_types
protected final Class[] rpc_invalidate_all_types
protected final Class[] rpc_batch_invalidate_types
Constructor Detail |
---|
public JGCacheInvalidationBridge()
Method Detail |
---|
public String getInvalidationManager()
JGCacheInvalidationBridgeMBean
getInvalidationManager
in interface JGCacheInvalidationBridgeMBean
public ClusterPartitionMBean getClusterPartition()
JGCacheInvalidationBridgeMBean
getClusterPartition
in interface JGCacheInvalidationBridgeMBean
public void setClusterPartition(ClusterPartitionMBean clusterPartition)
JGCacheInvalidationBridgeMBean
setClusterPartition
in interface JGCacheInvalidationBridgeMBean
clusterPartition
- the partitionpublic String getPartitionName()
JGCacheInvalidationBridgeMBean
getPartitionName
in interface JGCacheInvalidationBridgeMBean
public void setInvalidationManager(String objectName)
setInvalidationManager
in interface JGCacheInvalidationBridgeMBean
public void setPartitionName(String partitionName)
JGCacheInvalidationBridgeMBean
setPartitionName
in interface JGCacheInvalidationBridgeMBean
partitionName
- the name of the partitionpublic String getBridgeName()
getBridgeName
in interface JGCacheInvalidationBridgeMBean
public void setBridgeName(String name)
setBridgeName
in interface JGCacheInvalidationBridgeMBean
public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId)
DistributedReplicantManager.ReplicantListener
replicantsChanged
in interface DistributedReplicantManager.ReplicantListener
key
- The name of the key of the replicant that has changednewReplicants
- The list of new replicants for the give replicant key.
This list will be in a consistent order on all
cluster nodes on which the current viewId is
in effectnewReplicantsViewId
- The new replicant view id corresponding to this changepublic void valueHasChanged(String category, Serializable key, Serializable value, boolean locallyModified)
DistributedState.DSListenerEx
valueHasChanged
in interface DistributedState.DSListenerEx
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(String category, Serializable key, Serializable previousContent, boolean locallyModified)
DistributedState.DSListenerEx
keyHasBeenRemoved
in interface DistributedState.DSListenerEx
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(org.jboss.cache.invalidation.BatchInvalidation[] invalidations, boolean asynchronous)
batchInvalidate
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void invalidate(String invalidationGroupName, Serializable[] keys, boolean asynchronous)
invalidate
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void invalidate(String invalidationGroupName, Serializable key, boolean asynchronous)
invalidate
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void invalidateAll(String groupName, boolean async)
invalidateAll
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void newGroupCreated(String groupInvalidationName)
newGroupCreated
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void groupIsDropped(String groupInvalidationName)
groupIsDropped
in interface org.jboss.cache.invalidation.InvalidationBridgeListener
public void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void stopService()
stopService
in class org.jboss.system.ServiceMBeanSupport
public void _rpc_invalidate(String invalidationGroupName, Serializable key)
public void _rpc_invalidates(String invalidationGroupName, Serializable[] keys)
public void _rpc_invalidate_all(String invalidationGroupName)
public void _rpc_batchInvalidate(org.jboss.cache.invalidation.BatchInvalidation[] invalidations)
protected void _do_rpc_invalidate(String invalidationGroupName, Serializable key, boolean asynch)
protected void _do_rpc_invalidates(String invalidationGroupName, Serializable[] keys, boolean asynch)
protected void _do_rpc_invalidate_all(String invalidationGroupName, boolean asynch)
protected void _do_rpc_batchInvalidate(org.jboss.cache.invalidation.BatchInvalidation[] invalidations, boolean asynch)
protected void publishLocalInvalidationGroups() throws Exception
Exception
protected void updatedBridgedInvalidationGroupsInfo()
protected boolean groupExistsRemotely(String groupName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |