public class CanBeSiteMaster extends UUID
UUID which adds a boolean as payload. The boolean indicates whether the
current address can ever become a site master, or not.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
can_become_site_master |
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE| Modifier | Constructor and Description |
|---|---|
|
CanBeSiteMaster() |
protected |
CanBeSiteMaster(byte[] data,
boolean can_become_site_master) |
protected |
CanBeSiteMaster(UUID uuid,
boolean can_become_site_master) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBecomeSiteMaster() |
protected static byte[] |
generateRandomBytes() |
static CanBeSiteMaster |
randomUUID(boolean can_become_site_master) |
static CanBeSiteMaster |
randomUUID(String logical_name,
boolean can_become_site_master) |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
Returns serialized size of this address
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
add, add, compareTo, copy, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLongpublic CanBeSiteMaster()
protected CanBeSiteMaster(byte[] data,
boolean can_become_site_master)
protected CanBeSiteMaster(UUID uuid, boolean can_become_site_master)
public static CanBeSiteMaster randomUUID(boolean can_become_site_master)
public static CanBeSiteMaster randomUUID(String logical_name, boolean can_become_site_master)
public boolean canBecomeSiteMaster()
protected static byte[] generateRandomBytes()
public int size()
Addresspublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class UUIDIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class UUIDIOExceptionpublic void writeTo(DataOutput out) throws Exception
StreamablewriteTo in interface StreamablewriteTo in class UUIDExceptionpublic void readFrom(DataInput in) throws Exception
StreamablereadFrom in interface StreamablereadFrom in class UUIDExceptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.