org.jgroups.protocols
Class WanPipeAddress

java.lang.Object
  extended by org.jgroups.protocols.WanPipeAddress
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Address, Streamable

public class WanPipeAddress
extends java.lang.Object
implements Address

Logical address for a WAN pipe (logical link)

See Also:
Serialized Form

Constructor Summary
WanPipeAddress()
           
WanPipeAddress(java.lang.String logical_name)
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Establishes an order between 2 addresses.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isMulticastAddress()
          Checks whether this is an address that represents multiple destinations; e.g., a class D address in the Internet.
static void main(java.lang.String[] args)
           
 void readExternal(java.io.ObjectInput in)
           
 void readFrom(java.io.DataInputStream instream)
          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.DataOutputStream outstream)
          Write the entire state of the current object (including superclasses) to outstream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WanPipeAddress

public WanPipeAddress()

WanPipeAddress

public WanPipeAddress(java.lang.String logical_name)
Method Detail

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(java.lang.Object other)
              throws java.lang.ClassCastException
Establishes an order between 2 addresses. Assumes other contains non-null WanPipeAddress.

Specified by:
compareTo in interface java.lang.Comparable
Returns:
0 for equality, value less than 0 if smaller, greater than 0 if greater.
Throws:
java.lang.ClassCastException

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

toString

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

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

main

public static void main(java.lang.String[] args)

writeTo

public void writeTo(java.io.DataOutputStream outstream)
             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 instream)
              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


Copyright ? 1998-2006 Bela Ban. All Rights Reserved.