|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.nio.Address
public final class Address
Represents an address of a member in the cluster.
Field Summary | |
---|---|
static int |
ID
|
Constructor Summary | |
---|---|
Address()
|
|
Address(Address address)
|
|
Address(InetAddress inetAddress,
int port)
|
|
Address(InetSocketAddress inetSocketAddress)
Creates a new Address |
|
Address(String hostname,
InetAddress inetAddress,
int port)
|
|
Address(String host,
int port)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class. |
String |
getHost()
|
int |
getId()
Returns type identifier for this class. |
InetAddress |
getInetAddress()
|
InetSocketAddress |
getInetSocketAddress()
|
int |
getPort()
|
String |
getScopedHost()
|
String |
getScopeId()
|
int |
hashCode()
|
boolean |
isIPv4()
|
boolean |
isIPv6()
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
void |
setScopeId(String scopeId)
|
String |
toString()
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ID
Constructor Detail |
---|
public Address()
public Address(String host, int port) throws UnknownHostException
UnknownHostException
public Address(InetAddress inetAddress, int port)
public Address(InetSocketAddress inetSocketAddress)
inetSocketAddress
- the InetSocketAddress to use
NullPointerException
- if inetSocketAddress is null
IllegalArgumentException
- if the address can't be resolved.public Address(String hostname, InetAddress inetAddress, int port)
public Address(Address address)
Method Detail |
---|
public String getHost()
public int getPort()
public InetAddress getInetAddress() throws UnknownHostException
UnknownHostException
public InetSocketAddress getInetSocketAddress() throws UnknownHostException
UnknownHostException
public boolean isIPv4()
public boolean isIPv6()
public String getScopeId()
public void setScopeId(String scopeId)
public String getScopedHost()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |