|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HServerAddress
public class HServerAddress
HServerAddress is a "label" for a HBase server that combines the host name and port number.
| Constructor Summary | |
|---|---|
HServerAddress()
Empty constructor, used for Writable |
|
HServerAddress(HServerAddress other)
Construct a HServerAddress from another HServerAddress |
|
HServerAddress(InetSocketAddress address)
Construct a HServerAddress from an InetSocketAddress |
|
HServerAddress(String hostAndPort)
Construct a HServerAddress from a string of the form hostname:port |
|
HServerAddress(String bindAddress,
int port)
Construct a HServerAddress from hostname, port number |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
String |
getBindAddress()
|
InetSocketAddress |
getInetSocketAddress()
|
int |
getPort()
|
int |
hashCode()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HServerAddress()
public HServerAddress(InetSocketAddress address)
address - InetSocketAddress of serverpublic HServerAddress(String hostAndPort)
hostAndPort - format 'hostname:port'
public HServerAddress(String bindAddress,
int port)
bindAddress - host nameport - port numberpublic HServerAddress(HServerAddress other)
other - the HServerAddress to copy from| Method Detail |
|---|
public String getBindAddress()
public int getPort()
public InetSocketAddress getInetSocketAddress()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||