org.jgroups.stack
public class LogicalAddress extends Object implements Address
| Field Summary | |
|---|---|
| protected static int | count |
| protected String | host |
| protected int | id |
| protected boolean | multicast_addr |
| protected ArrayList | physical_addrs List |
| protected long | timestamp |
| Constructor Summary | |
|---|---|
| LogicalAddress() | |
| LogicalAddress(String host_name, List physical_addrs) Use this constructor to create an instance, not the null-constructor | |
| Method Summary | |
|---|---|
| void | addPhysicalAddress(SocketAddress addr)
For internal use only. |
| Object | clone() |
| int | compare(LogicalAddress other)
Establishes an order between 2 addresses. |
| int | compareTo(Object o)
implements the java.lang.Comparable interface |
| LogicalAddress | copy() |
| boolean | equals(Object obj) |
| byte[] | getAdditionalData()
Returns the additional_data. |
| String | getHost() |
| long | getId() |
| ArrayList | getPhysicalAddresses()
Returns a copy of the list of physical addresses. |
| SocketAddress | getPrimaryPhysicalAddress() |
| long | getTimestamp() |
| int | hashCode() |
| protected void | init(String host_name, List physical_addrs) |
| boolean | isMulticastAddress() |
| void | readExternal(ObjectInput in) |
| void | readFrom(DataInputStream in) |
| void | removeAllPhysicalAddresses()
For internal use only. |
| void | removePhysicalAddress(SocketAddress addr)
For internal use only. |
| void | setAdditionalData(byte[] additional_data)
Sets the additional_data. |
| void | setPrimaryPhysicalAddress(SocketAddress primary_physical_addr) |
| int | size() |
| String | toString() |
| String | toString(boolean print_details) |
| void | writeExternal(ObjectOutput out) |
| void | writeTo(DataOutputStream out) |
Parameters: addr
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: ClassCastException - if the specified object's type prevents it from being compared to this Object.
See Also: Comparable
Returns: byte[]
Returns: List of physical addresses (return value maybe null)
Parameters: addr
Parameters: additional_data The additional_data to set