|
||||||||||
| 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()
|
String |
getHostname()
|
InetSocketAddress |
getInetSocketAddress()
|
int |
getPort()
|
int |
hashCode()
|
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput 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 String getHostname()
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
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(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||