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 |
addressEMPTY_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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic 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 TopologyAwareAddresspublic String getRackId()
getRackId in interface TopologyAwareAddresspublic String getMachineId()
getMachineId in interface TopologyAwareAddresspublic boolean isSameSite(TopologyAwareAddress addr)
isSameSite in interface TopologyAwareAddresspublic boolean isSameRack(TopologyAwareAddress addr)
isSameRack in interface TopologyAwareAddresspublic boolean isSameMachine(TopologyAwareAddress addr)
isSameMachine in interface TopologyAwareAddressCopyright © 2022 JBoss by Red Hat. All rights reserved.