public class SiteUUID extends ExtendedUUID implements SiteAddress
Modifier and Type | Field and Description |
---|---|
protected static byte[] |
NAME |
protected static byte[] |
SITE_NAME |
can_become_site_master, flags, keys, site_master, values
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE
Constructor and Description |
---|
SiteUUID() |
SiteUUID(long mostSigBits,
long leastSigBits,
byte[] name,
byte[] site) |
SiteUUID(long mostSigBits,
long leastSigBits,
String name,
String site) |
SiteUUID(UUID uuid,
String name,
String site) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Address other)
Compares this UUID with the specified UUID.
|
UUID |
copy() |
String |
getName() |
String |
getSite()
Returns the ID of the site (all sites need to have a unique site ID)
|
String |
print(boolean detailed) |
protected String |
printOthers() |
String |
toString() |
addContents, clearFlag, flagsToString, get, get, isFlagSet, keyExists, keyExists, length, print, put, put, put, randomUUID, randomUUID, read, readExternal, readFrom, remove, remove, resize, setFlag, size, sizeofHashMap, write, writeExternal, writeTo
add, add, digits, equals, fromString, generateRandomBytes, get, getByName, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, remove, removeAll, retainAll, toStringLong
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
readFrom, writeTo
readExternal, writeExternal
protected static final byte[] NAME
protected static final byte[] SITE_NAME
public SiteUUID()
public SiteUUID(long mostSigBits, long leastSigBits, byte[] name, byte[] site)
public String getName()
public String getSite()
SiteAddress
getSite
in interface SiteAddress
public String toString()
toString
in class ExtendedUUID
public int compareTo(Address other)
UUID
The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is greater for the first UUID.
compareTo
in interface Comparable<Address>
compareTo
in class UUID
other
- UUID
to which this UUID
is to be comparedUUID
is less than, equal to, or greater than val
public String print(boolean detailed)
protected String printOthers()
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.