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()
TransportAddress
publishAddress()
static BoundTransportAddress
readBoundTransportAddress(StreamInput in)
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.java.lang.String
toString()
void
writeTo(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:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-