org.jgroups.util
Class ProxyAddress
java.lang.Object
  
org.jgroups.util.ProxyAddress
- All Implemented Interfaces: 
 - java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Address>, Address, Streamable
 
public class ProxyAddress
- extends java.lang.Object
- implements Address
  
Used by RELAY to ship original sender (original_addr) of a message. Behaves like an Addess, but forwards all methods
 to addr. Both addresses have to be non-null !
- Author:
 
  - Bela Ban
 
- See Also:
 - Serialized Form
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
finalize, getClass, notify, notifyAll, wait, wait, wait | 
 
proxy_addr
protected Address proxy_addr
original_addr
protected Address original_addr
ProxyAddress
public ProxyAddress()
ProxyAddress
public ProxyAddress(Address proxy_addr,
                    Address original_addr)
getProxyAddress
public Address getProxyAddress()
 
 
getOriginalAddress
public Address getOriginalAddress()
 
 
isMulticastAddress
public boolean isMulticastAddress()
- Description copied from interface: 
Address 
- Checks whether this is an address that represents multiple destinations;
 e.g., a class D address in the Internet.
- Specified by:
 isMulticastAddress in interface Address
 
- Returns:
 - true if this is a multicast address, false if it is a unicast address
 
 
 
size
public int size()
- Description copied from interface: 
Address 
- Returns serialized size of this address
- Specified by:
 size in interface Address
 
 
 
compareTo
public int compareTo(Address o)
- Specified by:
 compareTo in interface java.lang.Comparable<Address>
 
 
clone
protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
- Overrides:
 clone in class java.lang.Object
 
- Throws:
 java.lang.CloneNotSupportedException
 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equals in class java.lang.Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class java.lang.Object
 
 
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
 
- 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
 
- 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
 
- 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
 
- Throws:
 java.io.IOException
java.lang.ClassNotFoundException
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
 
toStringDetailed
public java.lang.String toStringDetailed()
 
 
Copyright © 1998-2009 Bela Ban / Red Hat. All Rights Reserved.