org.elasticsearch.common.transport
Class BoundTransportAddress

java.lang.Object
  extended by 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.


Constructor Summary
BoundTransportAddress(TransportAddress boundAddress, TransportAddress publishAddress)
           
 
Method Summary
 TransportAddress boundAddress()
           
 TransportAddress publishAddress()
           
static BoundTransportAddress readBoundTransportAddress(StreamInput in)
           
 void readFrom(StreamInput in)
           
 String toString()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundTransportAddress

public BoundTransportAddress(TransportAddress boundAddress,
                             TransportAddress publishAddress)
Method Detail

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.