org.jgroups.protocols
Class WanPipeAddress
java.lang.Object
org.jgroups.protocols.WanPipeAddress
- Address, Cloneable, Comparable, Externalizable, Streamable
public class WanPipeAddress
extends java.lang.Object
Logical address for a WAN pipe (logical link)
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.
|
WanPipeAddress
public WanPipeAddress()
WanPipeAddress
public WanPipeAddress(String logical_name)
compareTo
public int compareTo(Object other)
throws ClassCastException
Establishes an order between 2 addresses. Assumes other contains non-null WanPipeAddress.
- 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.
- isMulticastAddress in interface Address
- 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
- readFrom in interface Streamable
size
public int size()
Returns serialized size of this address
- 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
- writeTo in interface Streamable
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.