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,
java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
Deprecated.
|
protected |
TopologyUUID(long most_sig_bits,
long least_sig_bits,
java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMachineId()
Deprecated.
|
java.lang.String |
getRackId()
Deprecated.
|
java.lang.String |
getSiteId()
Deprecated.
|
boolean |
isSameMachine(TopologyUUID addr)
Deprecated.
|
boolean |
isSameRack(TopologyUUID addr)
Deprecated.
|
boolean |
isSameSite(TopologyUUID addr)
Deprecated.
|
static TopologyUUID |
randomUUID(java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
Deprecated.
|
static TopologyUUID |
randomUUID(java.lang.String logical_name,
java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
Deprecated.
|
void |
setMachineId(java.lang.String machine_id)
Deprecated.
|
void |
setRackId(java.lang.String rack_id)
Deprecated.
|
void |
setSiteId(java.lang.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, java.lang.String site_id, java.lang.String rack_id, java.lang.String machine_id)
protected TopologyUUID(long most_sig_bits, long least_sig_bits, java.lang.String site_id, java.lang.String rack_id, java.lang.String machine_id)
public static TopologyUUID randomUUID(java.lang.String site_id, java.lang.String rack_id, java.lang.String machine_id)
public static TopologyUUID randomUUID(java.lang.String logical_name, java.lang.String site_id, java.lang.String rack_id, java.lang.String machine_id)
public java.lang.String getSiteId()
public void setSiteId(java.lang.String site_id)
public java.lang.String getRackId()
public void setRackId(java.lang.String rack_id)
public java.lang.String getMachineId()
public void setMachineId(java.lang.String machine_id)
public boolean isSameSite(TopologyUUID addr)
public boolean isSameRack(TopologyUUID addr)
public boolean isSameMachine(TopologyUUID addr)
Copyright © 1998-2020 Red Hat. All Rights Reserved.