org.apache.hadoop.hbase
Class HServerInfo

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by org.apache.hadoop.hbase.HServerInfo
All Implemented Interfaces:
Comparable<HServerInfo>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<HServerInfo>

Deprecated. Use InetSocketAddress and or ServerName and or HServerLoad

public class HServerInfo
extends org.apache.hadoop.io.VersionedWritable
implements org.apache.hadoop.io.WritableComparable<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

HServerInfo

public HServerInfo()
Deprecated. 

HServerInfo

public HServerInfo(HServerAddress serverAddress,
                   int webuiport)
Deprecated. 
Constructor that creates a HServerInfo with a generated startcode

Parameters:
serverAddress -
webuiport - Port the webui runs on.

HServerInfo

public HServerInfo(HServerAddress serverAddress,
                   long startCode,
                   int webuiport)
Deprecated. 

HServerInfo

public HServerInfo(HServerInfo other)
Deprecated. 
Copy-constructor

Parameters:
other -
Method Detail

getVersion

public byte getVersion()
Deprecated. 
Specified by:
getVersion in class org.apache.hadoop.io.VersionedWritable
Returns:
the object version number

getServerAddress

public HServerAddress getServerAddress()
Deprecated. 

getStartCode

public long getStartCode()
Deprecated. 

getInfoPort

public int getInfoPort()
Deprecated. 

getWebuiPort

public int getWebuiPort()
Deprecated. 

getHostname

public String getHostname()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object
Returns:
ServerName and load concatenated.

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

readFields

public void readFields(DataInput in)
                throws IOException
Deprecated. 
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class org.apache.hadoop.io.VersionedWritable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Deprecated. 
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class org.apache.hadoop.io.VersionedWritable
Throws:
IOException

compareTo

public int compareTo(HServerInfo o)
Deprecated. 
Specified by:
compareTo in interface Comparable<HServerInfo>


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.