Class Address
java.lang.Object
org.infinispan.remoting.transport.Address
- All Implemented Interfaces:
Comparable<Address>
An encapsulation of a JGroups
ExtendedUUID
with a NodeVersion
, site id, rack id, and a machine id.- Since:
- 16.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static Address
fromExtendedUUID
(org.jgroups.util.ExtendedUUID address) static Address
fromNodeUUID
(UUID nodeUUID) long
long
int
hashCode()
boolean
isSameMachine
(Address other) boolean
isSameRack
(Address other) boolean
isSameSite
(Address other) boolean
static String
nodeUUIDToString
(UUID nodeUUID) static Address
protoFactory
(long mostSignificantBits, long leastSignificantBits, NodeVersion version, String siteId, String rackId, String machineId) static Address
random()
static Address
static Address
static org.jgroups.util.ExtendedUUID
static org.jgroups.util.ExtendedUUID
randomUUID
(String name, String siteId, String rackId, String machineId) static org.jgroups.util.ExtendedUUID
randomUUID
(String name, NodeVersion version, String siteId, String rackId, String machineId) static org.jgroups.util.ExtendedUUID
toExtendedUUID
(Address address) toString()
static String
toStringLong
(long mostSignificantBits, long leastSignificantBits)
-
Field Details
-
LOCAL
-
-
Method Details
-
random
-
random
-
random
-
randomUUID
public static org.jgroups.util.ExtendedUUID randomUUID() -
randomUUID
-
randomUUID
public static org.jgroups.util.ExtendedUUID randomUUID(String name, NodeVersion version, String siteId, String rackId, String machineId) -
toExtendedUUID
-
fromExtendedUUID
-
protoFactory
@ProtoFactory public static Address protoFactory(long mostSignificantBits, long leastSignificantBits, NodeVersion version, String siteId, String rackId, String machineId) -
fromNodeUUID
-
getNodeUUID
-
getMostSignificantBits
@ProtoField(value=1, defaultValue="0") public long getMostSignificantBits() -
getLeastSignificantBits
@ProtoField(value=2, defaultValue="0") public long getLeastSignificantBits() -
getVersion
-
getSiteId
-
getRackId
-
getMachineId
-
matches
-
isSameSite
-
isSameRack
-
isSameMachine
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Address>
-
nodeUUIDToString
-
toStringLong
-