|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.HServerInfo
public class HServerInfo
HServerInfo contains metainfo about an HRegionServer, Currently it only contains the server start code. In the future it will contain information about the source machine and load statistics.
Constructor Summary | |
---|---|
HServerInfo()
default constructor - used by Writable |
|
HServerInfo(HServerAddress serverAddress,
long startCode,
int infoPort)
Constructor |
|
HServerInfo(HServerInfo other)
Construct a new object using another as input (like a copy constructor) |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getInfoPort()
|
HServerLoad |
getLoad()
|
HServerAddress |
getServerAddress()
|
long |
getStartCode()
|
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
setLoad(HServerLoad load)
|
void |
setStartCode(long startCode)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HServerInfo()
public HServerInfo(HServerAddress serverAddress, long startCode, int infoPort)
serverAddress
- startCode
- infoPort
- Port the info server is listening on.public HServerInfo(HServerInfo other)
other
- Method Detail |
---|
public HServerLoad getLoad()
public void setLoad(HServerLoad load)
load
- the load to setpublic HServerAddress getServerAddress()
public long getStartCode()
public int getInfoPort()
public void setStartCode(long startCode)
startCode
- the startCode to setpublic 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
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |