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 JGroupsExtendedUUID
with 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 class
JGroupsTopologyAwareAddress.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 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)
-
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:
getSiteId
in interfaceTopologyAwareAddress
-
getRackId
public String getRackId()
- Specified by:
getRackId
in interfaceTopologyAwareAddress
-
getMachineId
public String getMachineId()
- Specified by:
getMachineId
in interfaceTopologyAwareAddress
-
isSameSite
public boolean isSameSite(TopologyAwareAddress addr)
- Specified by:
isSameSite
in interfaceTopologyAwareAddress
-
isSameRack
public boolean isSameRack(TopologyAwareAddress addr)
- Specified by:
isSameRack
in interfaceTopologyAwareAddress
-
isSameMachine
public boolean isSameMachine(TopologyAwareAddress addr)
- Specified by:
isSameMachine
in interfaceTopologyAwareAddress
-
-