org.elasticsearch.util.transport
Class BoundTransportAddress
java.lang.Object
org.elasticsearch.util.transport.BoundTransportAddress
- All Implemented Interfaces:
- Streamable
public class BoundTransportAddress
- extends java.lang.Object
- implements Streamable
A bounded transport address is a tuple of two TransportAddress
, one that represents
the address the transport is bounded on, the the published one represents the one clients should
communicate on.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BoundTransportAddress
public BoundTransportAddress(TransportAddress boundAddress,
TransportAddress publishAddress)
boundAddress
public TransportAddress boundAddress()
publishAddress
public TransportAddress publishAddress()
readBoundTransportAddress
public static BoundTransportAddress readBoundTransportAddress(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object