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,
java.lang.String name,
java.lang.String site) |
SiteUUID(UUID uuid,
java.lang.String name,
java.lang.String site) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Address other)
Compares this UUID with the specified UUID.
|
UUID |
copy() |
java.lang.String |
getName() |
java.lang.String |
getSite()
Returns the ID of the site (all sites need to have a unique site ID)
|
java.lang.String |
print(boolean detailed) |
protected java.lang.String |
printOthers() |
java.lang.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
protected static final byte[] NAME
protected static final byte[] SITE_NAME
public SiteUUID()
public SiteUUID(long mostSigBits, long leastSigBits, java.lang.String name, java.lang.String site)
public SiteUUID(long mostSigBits, long leastSigBits, byte[] name, byte[] site)
public SiteUUID(UUID uuid, java.lang.String name, java.lang.String site)
public java.lang.String getName()
public java.lang.String getSite()
SiteAddress
getSite
in interface SiteAddress
public java.lang.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.
public java.lang.String print(boolean detailed)
protected java.lang.String printOthers()
Copyright © 1998-2020 Red Hat. All Rights Reserved.