org.elasticsearch.common.transport
Class BoundTransportAddress
java.lang.Object
org.elasticsearch.common.transport.BoundTransportAddress
- All Implemented Interfaces:
- Streamable
public class BoundTransportAddress
- extends 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.
BoundTransportAddress
public BoundTransportAddress(TransportAddress boundAddress,
TransportAddress publishAddress)
boundAddress
public TransportAddress boundAddress()
publishAddress
public TransportAddress publishAddress()
readBoundTransportAddress
public static BoundTransportAddress readBoundTransportAddress(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012. All Rights Reserved.