|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.HServerInfo
InetSocketAddress
and or ServerName
and or
HServerLoad
public class HServerInfo
HServerInfo is meta info about an HRegionServer
. It hosts the
HServerAddress
, its webui port, and its server startcode. It was
used to pass meta info about a server across an RPC but we've since made
it so regionserver info is up in ZooKeeper and so this class is on its
way out. It used to carry HServerLoad
but as off HBase 0.92.0, the
HServerLoad is passed independent of this class. Also, we now no longer pass
the webui from regionserver to master (TODO: Fix).
Constructor Summary | |
---|---|
HServerInfo()
Deprecated. |
|
HServerInfo(HServerAddress serverAddress,
int webuiport)
Deprecated. Constructor that creates a HServerInfo with a generated startcode |
|
HServerInfo(HServerAddress serverAddress,
long startCode,
int webuiport)
Deprecated. |
|
HServerInfo(HServerInfo other)
Deprecated. Copy-constructor |
Method Summary | |
---|---|
int |
compareTo(HServerInfo o)
Deprecated. |
boolean |
equals(Object obj)
Deprecated. |
String |
getHostname()
Deprecated. |
int |
getInfoPort()
Deprecated. |
HServerAddress |
getServerAddress()
Deprecated. |
long |
getStartCode()
Deprecated. |
byte |
getVersion()
Deprecated. |
int |
getWebuiPort()
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 HServerInfo()
public HServerInfo(HServerAddress serverAddress, int webuiport)
serverAddress
- webuiport
- Port the webui runs on.public HServerInfo(HServerAddress serverAddress, long startCode, int webuiport)
public HServerInfo(HServerInfo other)
other
- Method Detail |
---|
public byte getVersion()
getVersion
in class org.apache.hadoop.io.VersionedWritable
public HServerAddress getServerAddress()
public long getStartCode()
public int getInfoPort()
public int getWebuiPort()
public String getHostname()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.io.VersionedWritable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.VersionedWritable
IOException
public int compareTo(HServerInfo o)
compareTo
in interface Comparable<HServerInfo>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |