public class DummyTransportAddress extends java.lang.Object implements TransportAddress
Writeable.Reader<R>
Modifier and Type | Field and Description |
---|---|
static DummyTransportAddress |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the address string for this transport address
|
java.lang.String |
getHost()
Returns the host string for this transport address
|
int |
getPort()
Returns the port of this transport address if applicable
|
boolean |
isLoopbackOrLinkLocalAddress() |
boolean |
sameHost(TransportAddress other) |
java.lang.String |
toString() |
short |
uniqueAddressTypeId() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final DummyTransportAddress INSTANCE
public short uniqueAddressTypeId()
uniqueAddressTypeId
in interface TransportAddress
public boolean sameHost(TransportAddress other)
sameHost
in interface TransportAddress
public boolean isLoopbackOrLinkLocalAddress()
isLoopbackOrLinkLocalAddress
in interface TransportAddress
public java.lang.String getHost()
TransportAddress
getHost
in interface TransportAddress
public java.lang.String getAddress()
TransportAddress
getAddress
in interface TransportAddress
public int getPort()
TransportAddress
getPort
in interface TransportAddress
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String toString()
toString
in interface TransportAddress
toString
in class java.lang.Object