|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.util.UUID
org.jgroups.util.AdditionalDataUUID
public class AdditionalDataUUID
Subclass of UUID which adds a string as payload. An instance of this can be fed to
JChannel.setAddressGenerator(org.jgroups.stack.AddressGenerator), with the address generator
creating PayloadUUIDs.
| Field Summary | |
|---|---|
protected byte[] |
payload
|
| Fields inherited from class org.jgroups.util.UUID |
|---|
cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE |
| Fields inherited from interface org.jgroups.Address |
|---|
IP_ADDR, NULL, SITE_MASTER, SITE_UUID, UUID_ADDR |
| Constructor Summary | |
|---|---|
|
AdditionalDataUUID()
|
protected |
AdditionalDataUUID(byte[] data,
byte[] payload)
|
| Method Summary | |
|---|---|
protected static byte[] |
generateRandomBytes()
|
static AdditionalDataUUID |
randomUUID(byte[] payload)
|
static AdditionalDataUUID |
randomUUID(java.lang.String logical_name,
byte[] payload)
|
void |
readExternal(java.io.ObjectInput in)
|
void |
readFrom(java.io.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 |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
| Methods inherited from class org.jgroups.util.UUID |
|---|
add, add, compareTo, copy, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLong |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected byte[] payload
| Constructor Detail |
|---|
public AdditionalDataUUID()
protected AdditionalDataUUID(byte[] data,
byte[] payload)
| Method Detail |
|---|
public static AdditionalDataUUID randomUUID(byte[] payload)
public static AdditionalDataUUID randomUUID(java.lang.String logical_name,
byte[] payload)
protected static byte[] generateRandomBytes()
public int size()
Address
size in interface Addresssize in class UUID
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class UUIDjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class UUIDjava.io.IOException
java.lang.ClassNotFoundException
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
Streamable
writeTo in interface StreamablewriteTo in class UUIDjava.lang.Exception
public void readFrom(java.io.DataInput in)
throws java.lang.Exception
Streamable
readFrom in interface StreamablereadFrom in class UUIDjava.lang.Exceptionpublic java.lang.String toString()
toString in class UUID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||