org.jgroups.util
Class ProxyUUID

java.lang.Object
  extended by org.jgroups.util.UUID
      extended by org.jgroups.util.ProxyUUID
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Address>, Address, Streamable

public class ProxyUUID
extends UUID

Used by RELAY to ship original sender of a message.

Author:
Bela Ban
See Also:
Serialized Form

Field Summary
protected  UUID original
           
 
Fields inherited from class org.jgroups.util.UUID
additional_data, leastSigBits, mostSigBits
 
Fields inherited from interface org.jgroups.Address
IP_ADDR, NULL, UUID_ADDR
 
Constructor Summary
ProxyUUID()
           
ProxyUUID(UUID addr, UUID original)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 void readFrom(java.io.DataInputStream 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()
           
 java.lang.String toStringLong()
          Returns a String object representing this UUID.
 void writeExternal(java.io.ObjectOutput out)
           
 void writeTo(java.io.DataOutputStream out)
          Write the entire state of the current object (including superclasses) to outstream.
 
Methods inherited from class org.jgroups.util.UUID
add, clone, compareTo, equals, get, getAdditionalData, getLeastSignificantBits, getMostSignificantBits, hashCode, isMulticastAddress, printCache, randomUUID, remove, removeAll, retainAll, setAdditionalData
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

original

protected UUID original
Constructor Detail

ProxyUUID

public ProxyUUID()

ProxyUUID

public ProxyUUID(UUID addr,
                 UUID original)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class UUID

toStringLong

public java.lang.String toStringLong()
Description copied from class: UUID
Returns a String object representing this UUID.

The UUID string representation is as described by this BNF:

 UUID                   = <time_low> "-" <time_mid> "-"
                          <time_high_and_version> "-"
                          <variant_and_sequence> "-"
                          <node>
 time_low               = 4*<hexOctet>
 time_mid               = 2*<hexOctet>
 time_high_and_version  = 2*<hexOctet>
 variant_and_sequence   = 2*<hexOctet>
 node                   = 6*<hexOctet>
 hexOctet               = <hexDigit><hexDigit>
 hexDigit               =
       "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
       | "a" | "b" | "c" | "d" | "e" | "f"
       | "A" | "B" | "C" | "D" | "E" | "F"
 

Overrides:
toStringLong in class UUID
Returns:
A string representation of this UUID

writeTo

public void writeTo(java.io.DataOutputStream out)
             throws java.io.IOException
Description copied from interface: Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed

Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class UUID
Throws:
java.io.IOException

readFrom

public void readFrom(java.io.DataInputStream in)
              throws java.io.IOException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException
Description copied from interface: Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed

Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class UUID
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class UUID
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class UUID
Throws:
java.io.IOException
java.lang.ClassNotFoundException

size

public int size()
Description copied from interface: Address
Returns serialized size of this address

Specified by:
size in interface Address
Overrides:
size in class UUID


Copyright © 1998-2009 Bela Ban / Red Hat. All Rights Reserved.