|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HServerAddress
InetSocketAddress or ServerName or
a hostname String and port.
public class HServerAddress
HServerAddress hosts a InetSocketAddress and makes it
WritableComparable. Resolves on construction AND on
deserialization -- since we're internally creating an InetSocketAddress --
so could end up with different results if the two ends of serialization have
different resolvers. Be careful where you use it. Should only be used when
you need to pass an InetSocketAddress across an RPC. Even then its a bad
idea because of the above resolve issue.
| Constructor Summary | |
|---|---|
HServerAddress()
Deprecated. Constructor for deserialization use only. |
|
HServerAddress(HServerAddress other)
Deprecated. Copy-constructor. |
|
HServerAddress(InetSocketAddress address)
Deprecated. Construct an instance from an InetSocketAddress. |
|
HServerAddress(String hostname,
int port)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
compareTo(HServerAddress o)
Deprecated. |
boolean |
equals(Object o)
Deprecated. |
String |
getBindAddress()
Deprecated. |
String |
getHostname()
Deprecated. |
String |
getHostnameAndPort()
Deprecated. |
InetSocketAddress |
getInetSocketAddress()
Deprecated. |
int |
getPort()
Deprecated. |
int |
hashCode()
Deprecated. |
void |
readFields(DataInput in)
Deprecated. |
String |
toString()
Deprecated. |
void |
write(DataOutput out)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HServerAddress()
public HServerAddress(InetSocketAddress address)
InetSocketAddress.
address - InetSocketAddress of server
public HServerAddress(String hostname,
int port)
hostname - Hostnameport - Port numberpublic HServerAddress(HServerAddress other)
other - HServerAddress to copy from| Method Detail |
|---|
public String getBindAddress()
public int getPort()
public String getHostname()
public String getHostnameAndPort()
public InetSocketAddress getInetSocketAddress()
public String toString()
toString in class Object<bind address> ':' <port>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(HServerAddress o)
compareTo in interface Comparable<HServerAddress>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||