public final class LocalTransportAddress extends Object implements TransportAddress
Modifier and Type | Field and Description |
---|---|
static LocalTransportAddress |
PROTO |
Constructor and Description |
---|
LocalTransportAddress(StreamInput in) |
LocalTransportAddress(String id) |
Modifier and Type | Method and Description |
---|---|
static LocalTransportAddress |
buildUnique() |
boolean |
equals(Object o) |
String |
getAddress()
Returns the address string for this transport address
|
String |
getHost()
Returns the host string for this transport address
|
int |
getPort()
Returns the port of this transport address if applicable
|
int |
hashCode() |
String |
id() |
LocalTransportAddress |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
boolean |
sameHost(TransportAddress other) |
String |
toString() |
short |
uniqueAddressTypeId() |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
public static final LocalTransportAddress PROTO
public LocalTransportAddress(StreamInput in) throws IOException
IOException
public LocalTransportAddress(String id)
public static LocalTransportAddress buildUnique()
public String id()
public short uniqueAddressTypeId()
uniqueAddressTypeId
in interface TransportAddress
public boolean sameHost(TransportAddress other)
sameHost
in interface TransportAddress
public String getHost()
TransportAddress
getHost
in interface TransportAddress
public String getAddress()
TransportAddress
getAddress
in interface TransportAddress
public int getPort()
TransportAddress
getPort
in interface TransportAddress
public LocalTransportAddress readFrom(StreamInput in) throws IOException
StreamableReader
readFrom
in interface StreamableReader<TransportAddress>
IOException
public void writeTo(StreamOutput out) throws IOException
Writeable
writeTo
in interface Writeable<TransportAddress>
IOException
public String toString()
toString
in interface TransportAddress
toString
in class Object
Copyright © 2009–2016. All rights reserved.