public class InetSocketTransportAddress extends Object implements TransportAddress
InetSocketAddress).| Constructor and Description |
|---|
InetSocketTransportAddress(InetAddress address,
int port) |
InetSocketTransportAddress(InetSocketAddress address) |
InetSocketTransportAddress(String hostname,
int port) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
address() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
readFrom(StreamInput in) |
static InetSocketTransportAddress |
readInetSocketTransportAddress(StreamInput in) |
boolean |
sameHost(TransportAddress other) |
static void |
setResolveAddress(boolean resolveAddress) |
String |
toString() |
short |
uniqueAddressTypeId() |
void |
writeTo(StreamOutput out) |
public InetSocketTransportAddress(String hostname, int port)
public InetSocketTransportAddress(InetAddress address, int port)
public InetSocketTransportAddress(InetSocketAddress address)
public static void setResolveAddress(boolean resolveAddress)
public static InetSocketTransportAddress readInetSocketTransportAddress(StreamInput in) throws IOException
IOExceptionpublic short uniqueAddressTypeId()
uniqueAddressTypeId in interface TransportAddresspublic boolean sameHost(TransportAddress other)
sameHost in interface TransportAddresspublic InetSocketAddress address()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.