org.jgroups.protocols
protected static class JMS.JMSAddress extends Object implements Address
Method Summary | |
---|---|
protected Object | clone()
Clone the object. |
int | compareTo(Object o)
Compare this object to o . |
boolean | equals(Object obj)
Test is this object is equal to obj .
|
String | getAddress()
Get the node address.
|
int | hashCode()
Get the hash code of this address.
|
boolean | isMulticastAddress()
Is the address a multicast address?
|
void | readExternal(ObjectInput in)
Read object from external input. |
void | readFrom(DataInputStream instream) |
void | setAddress(String address)
Set the node address.
|
int | size() |
String | toString()
Get the string representation of the address. |
void | writeExternal(ObjectOutput out)
Write the object to external output. |
void | writeTo(DataOutputStream outstream) |
o
. It is possible to compare only
addresses of the same class. Also they both should be either
multicast or unicast addresses.
Returns: value compliant with the Comparable#compareTo(Object) specififaction.
obj
.
Returns: true
iff the obj
is
JMSAddress
, node addresses are equal and they both are
either multicast or unicast addresses.
Returns: node address in the form passed to the constructor
.JMSAddress(String, boolean)
.
Returns: hash code of this object.
Returns: true
if the address is multicast address.
Parameters: address new node address.
a2.equals(a1)
is always true
, where
a2
is
JMSAddress a2 = new JMSAddress(a1.toString());
Returns: string representation of the address.