org.jgroups.protocols

Class WanPipeAddress

Implemented Interfaces:
Address, Cloneable, Comparable, Externalizable, Streamable

public class WanPipeAddress
extends java.lang.Object
implements Address

Logical address for a WAN pipe (logical link)

Constructor Summary

WanPipeAddress()
WanPipeAddress(String logical_name)

Method Summary

int
compareTo(Object other)
Establishes an order between 2 addresses.
boolean
equals(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(args[] )
void
readExternal(ObjectInput in)
void
readFrom(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
String
toString()
void
writeExternal(ObjectOutput out)
void
writeTo(DataOutputStream outstream)
Write the entire state of the current object (including superclasses) to outstream.

Constructor Details

WanPipeAddress

public WanPipeAddress()

WanPipeAddress

public WanPipeAddress(String logical_name)

Method Details

compareTo

public int compareTo(Object other)
            throws ClassCastException
Establishes an order between 2 addresses. Assumes other contains non-null WanPipeAddress.
Returns:
0 for equality, value less than 0 if smaller, greater than 0 if greater.

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

isMulticastAddress

public boolean isMulticastAddress()
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

main

public static void main(args[] )

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

readFrom

public void readFrom(DataInputStream instream)
            throws IOException,
                   IllegalAccessException,
                   InstantiationException
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

size

public int size()
Returns serialized size of this address
Specified by:
size in interface Address

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

writeTo

public void writeTo(DataOutputStream outstream)
            throws IOException
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

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.