public class SingletonAddress extends Object implements Address
| Modifier and Type | Field and Description |
|---|---|
protected Address |
addr |
protected String |
cluster_name |
| Constructor and Description |
|---|
SingletonAddress() |
SingletonAddress(String cluster_name,
Address addr) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Address o) |
boolean |
equals(Object obj) |
Address |
getAddress() |
String |
getClusterName() |
int |
hashCode() |
boolean |
isMulticastAddress()
Checks whether this is an address that represents multiple destinations;
e.g., a class D address in the Internet.
|
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInputStream in)
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 out)
Write the entire state of the current object (including superclasses) to outstream.
|
public Address getAddress()
public String getClusterName()
public boolean isMulticastAddress()
AddressisMulticastAddress in interface Addresspublic int size()
Addresspublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeTo(DataOutputStream out) throws IOException
StreamablewriteTo in interface StreamableIOExceptionpublic void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
StreamablereadFrom in interface StreamableIOExceptionIllegalAccessExceptionInstantiationExceptionpublic int compareTo(Address o)
compareTo in interface Comparable<Address>Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.