public class DummyTransportAddress extends Object implements TransportAddress
Modifier and Type | Field and Description |
---|---|
static DummyTransportAddress |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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
|
DummyTransportAddress |
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 DummyTransportAddress INSTANCE
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 DummyTransportAddress 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.