Class JGroupsTopologyAwareAddress
- java.lang.Object
-
- org.infinispan.remoting.transport.jgroups.JGroupsAddress
-
- org.infinispan.remoting.transport.jgroups.JGroupsTopologyAwareAddress
-
- All Implemented Interfaces:
Comparable<Address>,Address,TopologyAwareAddress
public class JGroupsTopologyAwareAddress extends JGroupsAddress implements TopologyAwareAddress
An encapsulation of a JGroupsExtendedUUIDwith a site id, a rack id, and a machine id.- Since:
- 5.0
- Author:
- Bela Ban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJGroupsTopologyAwareAddress.Externalizer
-
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
Constructors Constructor Description JGroupsTopologyAwareAddress(org.jgroups.util.ExtendedUUID address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMachineId()StringgetRackId()StringgetSiteId()booleanisSameMachine(TopologyAwareAddress addr)booleanisSameRack(TopologyAwareAddress addr)booleanisSameSite(TopologyAwareAddress addr)booleanmatches(String siteId, String rackId, String machineId)static 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, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
randomUUID
public static org.jgroups.util.ExtendedUUID randomUUID(String name, String siteId, String rackId, String machineId)
-
getSiteId
public String getSiteId()
- Specified by:
getSiteIdin interfaceTopologyAwareAddress
-
getRackId
public String getRackId()
- Specified by:
getRackIdin interfaceTopologyAwareAddress
-
getMachineId
public String getMachineId()
- Specified by:
getMachineIdin interfaceTopologyAwareAddress
-
isSameSite
public boolean isSameSite(TopologyAwareAddress addr)
- Specified by:
isSameSitein interfaceTopologyAwareAddress
-
isSameRack
public boolean isSameRack(TopologyAwareAddress addr)
- Specified by:
isSameRackin interfaceTopologyAwareAddress
-
isSameMachine
public boolean isSameMachine(TopologyAwareAddress addr)
- Specified by:
isSameMachinein interfaceTopologyAwareAddress
-
-