Class BoundTransportAddress
- java.lang.Object
-
- org.elasticsearch.common.transport.BoundTransportAddress
-
- All Implemented Interfaces:
Streamable
public class BoundTransportAddress extends java.lang.Object implements Streamable
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.
-
-
Constructor Summary
Constructors Constructor Description BoundTransportAddress(TransportAddress[] boundAddresses, TransportAddress publishAddress)
-
Method Summary
Modifier and Type Method Description TransportAddress[]boundAddresses()TransportAddresspublishAddress()static BoundTransportAddressreadBoundTransportAddress(StreamInput in)voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.
-
-
-
Constructor Detail
-
BoundTransportAddress
public BoundTransportAddress(TransportAddress[] boundAddresses, TransportAddress publishAddress)
-
-
Method Detail
-
boundAddresses
public TransportAddress[] boundAddresses()
-
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
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-