public class JGroupsCluster extends org.jgroups.blocks.ReplicatedHashMap<String,NodeModel> implements ICluster
org.jgroups.blocks.ReplicatedHashMap.Notification<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
JGroupsCluster(org.jgroups.JChannel chan,
JGroupsClusterConnection clusterConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeLocaleNodeState(ENodeState state) |
void |
close() |
void |
disconnect() |
String |
getID() |
NodeModel |
getLocaleNode() |
String[] |
getNodeIDs() |
List<NodeModel> |
getNodeList() |
void |
receive(org.jgroups.Message message) |
void |
sendMessage(IClusterMessage msg) |
void |
start() |
void |
suspect(org.jgroups.Address member) |
void |
viewAccepted(org.jgroups.View view) |
_clear, _put, _putAll, _putIfAbsent, _remove, _remove, _replace, _replace, addNotifier, block, clear, containsKey, containsValue, entrySet, get, getChannel, getClusterName, getLocalAddress, getState, getTimeout, init, isBlockingUpdates, keySet, put, putAll, putIfAbsent, remove, remove, removeNotifier, replace, replace, setBlockingUpdates, setState, setTimeout, size, start, stop, synchronizedMap, unblock, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic JGroupsCluster(org.jgroups.JChannel chan,
JGroupsClusterConnection clusterConnection)
public void receive(org.jgroups.Message message)
public void viewAccepted(org.jgroups.View view)
public void suspect(org.jgroups.Address member)
public List<NodeModel> getNodeList()
getNodeList in interface IClusterpublic String[] getNodeIDs()
getNodeIDs in interface IClusterpublic NodeModel getLocaleNode()
getLocaleNode in interface IClusterpublic void disconnect()
public void close()
public void sendMessage(IClusterMessage msg) throws Exception
sendMessage in interface IClusterExceptionpublic void changeLocaleNodeState(ENodeState state)
changeLocaleNodeState in interface IClusterCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.