public class JGroupsTopologyAwareAddress extends JGroupsAddress implements TopologyAwareAddress
ExtendedUUID
with a site id, a rack id, and a machine id.Modifier and Type | Class and Description |
---|---|
static class |
JGroupsTopologyAwareAddress.Externalizer |
address
EMPTY_ARRAY
Constructor and Description |
---|
JGroupsTopologyAwareAddress(org.jgroups.util.ExtendedUUID address) |
Modifier and Type | Method and Description |
---|---|
String |
getMachineId() |
String |
getRackId() |
String |
getSiteId() |
boolean |
isSameMachine(TopologyAwareAddress addr) |
boolean |
isSameRack(TopologyAwareAddress addr) |
boolean |
isSameSite(TopologyAwareAddress addr) |
boolean |
matches(String siteId,
String rackId,
String machineId) |
static org.jgroups.util.ExtendedUUID |
randomUUID(String name,
String siteId,
String rackId,
String machineId) |
compareTo, equals, getJGroupsAddress, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public JGroupsTopologyAwareAddress(org.jgroups.util.ExtendedUUID address)
public static org.jgroups.util.ExtendedUUID randomUUID(String name, String siteId, String rackId, String machineId)
public String getSiteId()
getSiteId
in interface TopologyAwareAddress
public String getRackId()
getRackId
in interface TopologyAwareAddress
public String getMachineId()
getMachineId
in interface TopologyAwareAddress
public boolean isSameSite(TopologyAwareAddress addr)
isSameSite
in interface TopologyAwareAddress
public boolean isSameRack(TopologyAwareAddress addr)
isSameRack
in interface TopologyAwareAddress
public boolean isSameMachine(TopologyAwareAddress addr)
isSameMachine
in interface TopologyAwareAddress
Copyright © 2021 JBoss by Red Hat. All rights reserved.