org.elasticsearch.common.transport
Class InetSocketTransportAddress

java.lang.Object
  extended by org.elasticsearch.common.transport.InetSocketTransportAddress
All Implemented Interfaces:
Serializable, Streamable, TransportAddress

public class InetSocketTransportAddress
extends Object
implements TransportAddress

A transport address used for IP socket address (wraps InetSocketAddress).

See Also:
Serialized Form

Constructor Summary
InetSocketTransportAddress(InetAddress address, int port)
           
InetSocketTransportAddress(InetSocketAddress address)
           
InetSocketTransportAddress(String hostname, int port)
           
 
Method Summary
 InetSocketAddress address()
           
 boolean equals(Object o)
           
 int hashCode()
           
 boolean match(String otherAddress)
           
 void readFrom(StreamInput in)
           
static InetSocketTransportAddress readInetSocketTransportAddress(StreamInput in)
           
 boolean sameHost(TransportAddress other)
           
static void setResolveAddress(boolean resolveAddress)
           
 String toString()
           
 short uniqueAddressTypeId()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InetSocketTransportAddress

public InetSocketTransportAddress(String hostname,
                                  int port)

InetSocketTransportAddress

public InetSocketTransportAddress(InetAddress address,
                                  int port)

InetSocketTransportAddress

public InetSocketTransportAddress(InetSocketAddress address)
Method Detail

setResolveAddress

public static void setResolveAddress(boolean resolveAddress)

readInetSocketTransportAddress

public static InetSocketTransportAddress readInetSocketTransportAddress(StreamInput in)
                                                                 throws IOException
Throws:
IOException

uniqueAddressTypeId

public short uniqueAddressTypeId()
Specified by:
uniqueAddressTypeId in interface TransportAddress

match

public boolean match(String otherAddress)
Specified by:
match in interface TransportAddress

sameHost

public boolean sameHost(TransportAddress other)
Specified by:
sameHost in interface TransportAddress

address

public InetSocketAddress address()

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.