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, toStringLong
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public String getName()
public String getSite()
SiteAddress
getSite
in interface SiteAddress
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class UUID
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class UUID
IOException
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
readFrom
in class UUID
Exception
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
writeTo
in class UUID
Exception
public int size()
Address
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.