org.jgroups.stack
public class IpAddress extends Object implements Address
| Field Summary | |
|---|---|
| protected static Log | log |
| Constructor Summary | |
|---|---|
| IpAddress() | |
| IpAddress(String i, int p) | |
| IpAddress(InetAddress i, int p) | |
| IpAddress(int port) | |
| IpAddress(int port, boolean set_default_host) | |
| Method Summary | |
|---|---|
| Object | clone() |
| int | compare(IpAddress other)
Establishes an order between 2 addresses. |
| int | compareTo(Object o)
implements the java.lang.Comparable interface |
| boolean | equals(Object obj) |
| byte[] | getAdditionalData()
Returns the additional_data. |
| InetAddress | getIpAddress() |
| int | getPort() |
| int | hashCode() |
| boolean | isMulticastAddress() |
| void | readExternal(ObjectInput in) |
| void | readFrom(DataInputStream in) |
| void | setAdditionalData(byte[] additional_data)
Sets the additional_data. |
| int | size() |
| String | toString() |
| void | writeExternal(ObjectOutput out) |
| void | writeTo(DataOutputStream out) |
Returns: 0 for equality, value less than 0 if smaller, greater than 0 if greater.
Parameters: o - the Object to be compared
Returns: a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws: java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.
See Also: java.lang.Comparable
Returns: byte[]
Parameters: additional_data The additional_data to set