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 TypeMethodDescriptionintbooleanstatic AddressfromExtendedUUID(org.jgroups.util.ExtendedUUID address) static AddressfromNodeUUID(UUID nodeUUID) longlonginthashCode()booleanisSameMachine(Address other) booleanisSameRack(Address other) booleanisSameSite(Address other) booleanstatic StringnodeUUIDToString(UUID nodeUUID) static AddressprotoFactory(long mostSignificantBits, long leastSignificantBits, NodeVersion version, String siteId, String rackId, String machineId) static Addressrandom()static Addressstatic Addressstatic org.jgroups.util.ExtendedUUIDstatic org.jgroups.util.ExtendedUUIDrandomUUID(String name, String siteId, String rackId, String machineId) static org.jgroups.util.ExtendedUUIDrandomUUID(String name, NodeVersion version, String siteId, String rackId, String machineId) static org.jgroups.util.ExtendedUUIDtoExtendedUUID(Address address) toString()static StringtoStringLong(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:
compareToin interfaceComparable<Address>
-
nodeUUIDToString
-
toStringLong
-