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.
|
DummyTransportAddress |
readFrom(StreamInput in,
String hostString) |
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 TransportAddresspublic boolean sameHost(TransportAddress other)
sameHost in interface TransportAddresspublic String getHost()
TransportAddressgetHost in interface TransportAddresspublic String getAddress()
TransportAddressgetAddress in interface TransportAddresspublic int getPort()
TransportAddressgetPort in interface TransportAddresspublic DummyTransportAddress readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom in interface StreamableReader<TransportAddress>IOExceptionpublic DummyTransportAddress readFrom(StreamInput in, String hostString) throws IOException
readFrom in interface TransportAddressIOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo in interface Writeable<TransportAddress>IOExceptionpublic String toString()
toString in interface TransportAddresstoString in class ObjectCopyright © 2009–2017. All rights reserved.