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(AddressGenerator)
,
with the address generator creating TopologyUUIDs.
Mainly used by TopologyAwareConsistentHash in Infinispan (www.infinispan.org).限定符和类型 | 字段和说明 |
---|---|
protected static byte[] |
MACHINE_ID
已过时。
|
protected static byte[] |
RACK_ID
已过时。
|
protected static byte[] |
SITE_ID
已过时。
|
can_become_site_master, flags, keys, site_master, values
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE
限定符 | 构造器和说明 |
---|---|
|
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)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMachineId()
已过时。
|
java.lang.String |
getRackId()
已过时。
|
java.lang.String |
getSiteId()
已过时。
|
boolean |
isSameMachine(TopologyUUID addr)
已过时。
|
boolean |
isSameRack(TopologyUUID addr)
已过时。
|
boolean |
isSameSite(TopologyUUID addr)
已过时。
|
static TopologyUUID |
randomUUID(java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
已过时。
|
static TopologyUUID |
randomUUID(java.lang.String logical_name,
java.lang.String site_id,
java.lang.String rack_id,
java.lang.String machine_id)
已过时。
|
void |
setMachineId(java.lang.String machine_id)
已过时。
|
void |
setRackId(java.lang.String rack_id)
已过时。
|
void |
setSiteId(java.lang.String site_id)
已过时。
|
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)