Class BoundTransportAddress
- java.lang.Object
-
- org.elasticsearch.common.transport.BoundTransportAddress
-
- All Implemented Interfaces:
Writeable
public class BoundTransportAddress extends java.lang.Object implements Writeable
A bounded transport address is a tuple ofTransportAddress
, one array that represents the addresses the transport is bound to, and the other is the published one that represents the address clients should communicate on.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description BoundTransportAddress(StreamInput in)
BoundTransportAddress(TransportAddress[] boundAddresses, TransportAddress publishAddress)
-
Method Summary
Modifier and Type Method Description TransportAddress[]
boundAddresses()
TransportAddress
publishAddress()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
-
-
Constructor Detail
-
BoundTransportAddress
public BoundTransportAddress(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
BoundTransportAddress
public BoundTransportAddress(TransportAddress[] boundAddresses, TransportAddress publishAddress)
-
-
Method Detail
-
boundAddresses
public TransportAddress[] boundAddresses()
-
publishAddress
public TransportAddress publishAddress()
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-