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, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
public 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 ICluster
public String[] getNodeIDs()
getNodeIDs
in interface ICluster
public NodeModel getLocaleNode()
getLocaleNode
in interface ICluster
public void disconnect()
public void close()
public void sendMessage(IClusterMessage msg) throws Exception
sendMessage
in interface ICluster
Exception
public void changeLocaleNodeState(ENodeState state)
changeLocaleNodeState
in interface ICluster
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.