| java.lang.Object org.jboss.ha.framework.server.DistributedReplicantManagerImpl
Inner Class :static class KeyChangeEvent | |
Inner Class :protected class MergeMembers extends Thread | |
Inner Class :protected class MembersPublisher extends Thread | |
Method Summary | |
public void | _add(String key, String nodeName, Serializable replicant) | public void | _remove(String key, String nodeName) | public void | add(String key, Serializable replicant) | protected void | addReplicant(String key, String nodeName, Serializable replicant) Add a replicant to the replicants map. | protected void | addReplicant(Map map, String key, String nodeName, Serializable replicant) Logic for adding replicant to any map. | protected int | calculateReplicantsHash(List members) | protected void | cleanupKeyListeners() | public void | destroy() | public Collection | getAllServices() | public Serializable | getCurrentState() | protected Vector | getKeysReplicatedByNode(String nodeName) | public int | getReplicantsViewId(String key) | public void | init() | public boolean | isMasterReplica(String key) | public String | listContent() | public String | listXmlContent() | public Serializable | lookupLocalReplicant(String key) | public Object[] | lookupLocalReplicants() | public List | lookupReplicants(String key) | public List | lookupReplicantsNodeNames(String key) | public void | membershipChanged(Vector deadMembers, Vector newMembers, Vector allMembers) | public void | membershipChangedDuringMerge(Vector deadMembers, Vector newMembers, Vector allMembers, Vector originatingGroups) | protected void | mergeMembers() | protected static synchronized int | nextThreadID() | protected void | notifyKeyListeners(String key, List newReplicants) | public void | processEvent(Object event) | protected void | purgeDeadMembers(Vector deadMembers) get rid of dead members from replicant list
return true if anything was purged. | public void | registerListener(String key, DistributedReplicantManager.ReplicantListener subscriber) | public void | remove(String key) | protected void | removeLocal(String key) | protected boolean | removeReplicant(String key, String nodeName) | protected boolean | replicantEntryAlreadyExists(String key, String nodeName) | protected boolean | replicantEntryAlreadyExists(Map map, String key, String nodeName) | protected void | republishLocalReplicants() | public void | setCurrentState(Serializable newState) | public void | start() | public void | stop() | public void | unregisterListener(String key, DistributedReplicantManager.ReplicantListener subscriber) | protected int | updateReplicantsHashId(String key) |
SERVICE_NAME | final protected static String SERVICE_NAME(Code) | | |
asynchHandler | protected AsynchEventHandler asynchHandler(Code) | | The handler used to send replicant change notifications asynchronously
|
keyListeners | protected ConcurrentReaderHashMap keyListeners(Code) | | |
localReplicants | protected ConcurrentReaderHashMap localReplicants(Code) | | |
partitionNameKnown | protected Latch partitionNameKnown(Code) | | |
replicants | protected ConcurrentReaderHashMap replicants(Code) | | |
threadID | protected static int threadID(Code) | | |
trace | protected boolean trace(Code) | | |
DistributedReplicantManagerImpl | public DistributedReplicantManagerImpl(HAPartition partition, MBeanServer server)(Code) | | This class manages replicated objects through the given partition
Parameters: partition - HAPartition through which replicated objects will be exchanged |
_add | public void _add(String key, String nodeName, Serializable replicant)(Code) | | Cluster callback called when a new replicant is added on another node
Parameters: key - Replicant key Parameters: nodeName - Node that add the current replicant Parameters: replicant - Serialized representation of the replicant |
_remove | public void _remove(String key, String nodeName)(Code) | | Cluster callback called when a replicant is removed by another node
Parameters: key - Name of the replicant key Parameters: nodeName - Node that wants to remove its replicant for the give key |
addReplicant | protected void addReplicant(String key, String nodeName, Serializable replicant)(Code) | | Add a replicant to the replicants map.
Parameters: key - replicant key name Parameters: nodeName - name of the node that adds this replicant Parameters: replicant - Serialized representation of the replica |
addReplicant | protected void addReplicant(Map map, String key, String nodeName, Serializable replicant)(Code) | | Logic for adding replicant to any map.
Parameters: map - structure in which adding the new replicant Parameters: key - name of the replicant key Parameters: nodeName - name of the node adding the replicant Parameters: replicant - serialized representation of the replicant that is added |
calculateReplicantsHash | protected int calculateReplicantsHash(List members)(Code) | | |
cleanupKeyListeners | protected void cleanupKeyListeners()(Code) | | |
getReplicantsViewId | public int getReplicantsViewId(String key)(Code) | | |
isMasterReplica | public boolean isMasterReplica(String key)(Code) | | |
lookupLocalReplicants | public Object[] lookupLocalReplicants() throws Exception(Code) | | Cluster callback called when a node wants to know our complete list of local replicants
throws: Exception - Thrown if a cluster communication exception occurs A java array of size 2 containing the name of our node in this cluster and the serialized representation of our state |
lookupReplicantsNodeNames | public List lookupReplicantsNodeNames(String key)(Code) | | |
membershipChangedDuringMerge | public void membershipChangedDuringMerge(Vector deadMembers, Vector newMembers, Vector allMembers, Vector originatingGroups)(Code) | | |
mergeMembers | protected void mergeMembers()(Code) | | |
nextThreadID | protected static synchronized int nextThreadID()(Code) | | |
notifyKeyListeners | protected void notifyKeyListeners(String key, List newReplicants)(Code) | | Notifies, through a callback, the listeners for a given replicant that the set of replicants has changed
Parameters: key - The replicant key name Parameters: newReplicants - The new list of replicants |
purgeDeadMembers | protected void purgeDeadMembers(Vector deadMembers)(Code) | | get rid of dead members from replicant list
return true if anything was purged.
|
replicantEntryAlreadyExists | protected boolean replicantEntryAlreadyExists(String key, String nodeName)(Code) | | Indicates if the a replicant already exists for a given key/node pair
Parameters: key - replicant key name Parameters: nodeName - name of the node a boolean indicating if a replicant for the given node exists for the given key |
replicantEntryAlreadyExists | protected boolean replicantEntryAlreadyExists(Map map, String key, String nodeName)(Code) | | Indicates if the a replicant already exists for a given key/node pair in the give data structure
|
republishLocalReplicants | protected void republishLocalReplicants()(Code) | | |
updateReplicantsHashId | protected int updateReplicantsHashId(String key)(Code) | | |
|
|