public class SiteUUID extends UUID implements SiteAddress
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected String |
site |
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE| Constructor and Description |
|---|
SiteUUID() |
SiteUUID(long mostSigBits,
long leastSigBits,
String name,
String site) |
SiteUUID(UUID uuid,
String name,
String site) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
copy() |
String |
getName() |
String |
getSite()
Returns the ID of the site (all sites need to have a unique site ID)
|
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, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLongclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic String getName()
public String getSite()
SiteAddressgetSite in interface SiteAddresspublic 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 readFrom(DataInput in) throws Exception
StreamablereadFrom in interface StreamablereadFrom in class UUIDExceptionpublic void writeTo(DataOutput out) throws Exception
StreamablewriteTo in interface StreamablewriteTo in class UUIDExceptionpublic int size()
AddressCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.