ExtendedUUID
instead. This class will be dropped in 4.0.@Deprecated public class TopologyUUID extends ExtendedUUID
ExtendedUUID
which adds 3 strings (siteId, rackId and machineId) to the hashmap.
An instance of this can be fed to JChannel.addAddressGenerator(org.jgroups.stack.AddressGenerator)
,
with the address generator creating TopologyUUIDs.
Mainly used by TopologyAwareConsistentHash in Infinispan (www.infinispan.org).Modifier and Type | Field and Description |
---|---|
protected static byte[] |
MACHINE_ID
Deprecated.
|
protected static byte[] |
RACK_ID
Deprecated.
|
protected static byte[] |
SITE_ID
Deprecated.
|
can_become_site_master, flags, keys, site_master, values
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE
Modifier | Constructor and Description |
---|---|
|
TopologyUUID()
Deprecated.
|
protected |
TopologyUUID(byte[] data,
String site_id,
String rack_id,
String machine_id)
Deprecated.
|
protected |
TopologyUUID(long most_sig_bits,
long least_sig_bits,
String site_id,
String rack_id,
String machine_id)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getMachineId()
Deprecated.
|
String |
getRackId()
Deprecated.
|
String |
getSiteId()
Deprecated.
|
boolean |
isSameMachine(TopologyUUID addr)
Deprecated.
|
boolean |
isSameRack(TopologyUUID addr)
Deprecated.
|
boolean |
isSameSite(TopologyUUID addr)
Deprecated.
|
static TopologyUUID |
randomUUID(String site_id,
String rack_id,
String machine_id)
Deprecated.
|
static TopologyUUID |
randomUUID(String logical_name,
String site_id,
String rack_id,
String machine_id)
Deprecated.
|
void |
setMachineId(String machine_id)
Deprecated.
|
void |
setRackId(String rack_id)
Deprecated.
|
void |
setSiteId(String site_id)
Deprecated.
|
addContents, clearFlag, flagsToString, get, get, isFlagSet, keyExists, keyExists, length, print, put, put, put, randomUUID, randomUUID, read, readExternal, readFrom, remove, remove, resize, setFlag, size, sizeofHashMap, toString, write, writeExternal, writeTo
add, add, compareTo, copy, digits, equals, fromString, generateRandomBytes, get, getByName, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, remove, removeAll, retainAll, toStringLong
protected static final byte[] SITE_ID
protected static final byte[] RACK_ID
protected static final byte[] MACHINE_ID
public TopologyUUID()
protected TopologyUUID(byte[] data, String site_id, String rack_id, String machine_id)
public static TopologyUUID randomUUID(String site_id, String rack_id, String machine_id)
public static TopologyUUID randomUUID(String logical_name, String site_id, String rack_id, String machine_id)
public String getSiteId()
public void setSiteId(String site_id)
public String getRackId()
public void setRackId(String rack_id)
public String getMachineId()
public void setMachineId(String machine_id)
public boolean isSameSite(TopologyUUID addr)
public boolean isSameRack(TopologyUUID addr)
public boolean isSameMachine(TopologyUUID addr)
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.