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
Nested Classes -
Field Summary
Fields inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
addressFields inherited from interface org.infinispan.remoting.transport.Address
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanstatic org.jgroups.util.ExtendedUUIDrandomUUID(String name, String siteId, String rackId, String machineId) Methods inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
compareTo, equals, getJGroupsAddress, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
JGroupsTopologyAwareAddress
public JGroupsTopologyAwareAddress(org.jgroups.util.ExtendedUUID address)
-
-
Method Details
-
randomUUID
-
getSiteId
- Specified by:
getSiteIdin interfaceTopologyAwareAddress
-
getRackId
- Specified by:
getRackIdin interfaceTopologyAwareAddress
-
getMachineId
- Specified by:
getMachineIdin interfaceTopologyAwareAddress
-
matches
-
isSameSite
- Specified by:
isSameSitein interfaceTopologyAwareAddress
-
isSameRack
- Specified by:
isSameRackin interfaceTopologyAwareAddress
-
isSameMachine
- Specified by:
isSameMachinein interfaceTopologyAwareAddress
-