public class HServerInfo extends org.apache.hadoop.io.VersionedWritable implements org.apache.hadoop.io.WritableComparable<HServerInfo>
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
- 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()
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>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.