Class JGroupsTopologyAwareAddress
java.lang.Object
org.infinispan.remoting.transport.jgroups.JGroupsAddress
org.infinispan.remoting.transport.jgroups.JGroupsTopologyAwareAddress
- All Implemented Interfaces:
Comparable<Address>
,Address
,TopologyAwareAddress
An encapsulation of a JGroups
ExtendedUUID
with a site id, a rack id, and a machine id.- Since:
- 5.0
- Author:
- Bela Ban
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
address
Fields inherited from interface org.infinispan.remoting.transport.Address
EMPTY_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
static org.jgroups.util.ExtendedUUID
randomUUID
(String name, String siteId, String rackId, String machineId) Methods inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
compareTo, equals, getJGroupsAddress, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
JGroupsTopologyAwareAddress
public JGroupsTopologyAwareAddress(org.jgroups.util.ExtendedUUID address)
-
-
Method Details
-
randomUUID
-
getSiteId
- Specified by:
getSiteId
in interfaceTopologyAwareAddress
-
getRackId
- Specified by:
getRackId
in interfaceTopologyAwareAddress
-
getMachineId
- Specified by:
getMachineId
in interfaceTopologyAwareAddress
-
matches
-
isSameSite
- Specified by:
isSameSite
in interfaceTopologyAwareAddress
-
isSameRack
- Specified by:
isSameRack
in interfaceTopologyAwareAddress
-
isSameMachine
- Specified by:
isSameMachine
in interfaceTopologyAwareAddress
-