org.apache.hadoop.hbase
Class ServerLoad

java.lang.Object
  extended by org.apache.hadoop.hbase.ServerLoad

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ServerLoad
extends Object

This class is used for exporting current state of load on a RegionServer.


Field Summary
static ServerLoad EMPTY_SERVERLOAD
           
protected  org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad
           
 
Constructor Summary
ServerLoad(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad)
           
 
Method Summary
 long getCurrentCompactedKVs()
           
 int getInfoServerPort()
           
 int getLoad()
          Originally, this method factored in the effect of requests going to the server as well.
 int getMaxHeapMB()
           
 int getMemstoreSizeInMB()
           
 int getNumberOfRegions()
           
 int getNumberOfRequests()
           
 long getReadRequestsCount()
           
 String[] getRegionServerCoprocessors()
          Return the RegionServer-level coprocessors
 Map<byte[],RegionLoad> getRegionsLoad()
           
 ReplicationLoadSink getReplicationLoadSink()
          Call directly from client such as hbase shell
 List<ReplicationLoadSource> getReplicationLoadSourceList()
          Call directly from client such as hbase shell
 double getRequestsPerSecond()
           
 int getRootIndexSizeKB()
           
 String[] getRsCoprocessors()
          Return the RegionServer-level and Region-level coprocessors
 int getStorefileIndexSizeInMB()
           
 int getStorefiles()
           
 int getStorefileSizeInMB()
           
 int getStores()
           
 int getStoreUncompressedSizeMB()
           
 long getTotalCompactingKVs()
           
 int getTotalNumberOfRequests()
           
 int getTotalStaticBloomSizeKB()
           
 int getTotalStaticIndexSizeKB()
           
 int getUsedHeapMB()
           
 long getWriteRequestsCount()
           
 boolean hasMaxHeapMB()
           
 boolean hasNumberOfRequests()
           
 boolean hasTotalNumberOfRequests()
           
 boolean hasUsedHeapMB()
           
 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad obtainServerLoadPB()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serverLoad

protected org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad

EMPTY_SERVERLOAD

public static final ServerLoad EMPTY_SERVERLOAD
Constructor Detail

ServerLoad

public ServerLoad(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad)
Method Detail

obtainServerLoadPB

public org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ServerLoad obtainServerLoadPB()

getNumberOfRequests

public int getNumberOfRequests()

hasNumberOfRequests

public boolean hasNumberOfRequests()

getTotalNumberOfRequests

public int getTotalNumberOfRequests()

hasTotalNumberOfRequests

public boolean hasTotalNumberOfRequests()

getUsedHeapMB

public int getUsedHeapMB()

hasUsedHeapMB

public boolean hasUsedHeapMB()

getMaxHeapMB

public int getMaxHeapMB()

hasMaxHeapMB

public boolean hasMaxHeapMB()

getStores

public int getStores()

getStorefiles

public int getStorefiles()

getStoreUncompressedSizeMB

public int getStoreUncompressedSizeMB()

getStorefileSizeInMB

public int getStorefileSizeInMB()

getMemstoreSizeInMB

public int getMemstoreSizeInMB()

getStorefileIndexSizeInMB

public int getStorefileIndexSizeInMB()

getReadRequestsCount

public long getReadRequestsCount()

getWriteRequestsCount

public long getWriteRequestsCount()

getRootIndexSizeKB

public int getRootIndexSizeKB()

getTotalStaticIndexSizeKB

public int getTotalStaticIndexSizeKB()

getTotalStaticBloomSizeKB

public int getTotalStaticBloomSizeKB()

getTotalCompactingKVs

public long getTotalCompactingKVs()

getCurrentCompactedKVs

public long getCurrentCompactedKVs()

getNumberOfRegions

public int getNumberOfRegions()
Returns:
the number of regions

getInfoServerPort

public int getInfoServerPort()

getReplicationLoadSourceList

public List<ReplicationLoadSource> getReplicationLoadSourceList()
Call directly from client such as hbase shell

Returns:
the list of ReplicationLoadSource

getReplicationLoadSink

public ReplicationLoadSink getReplicationLoadSink()
Call directly from client such as hbase shell

Returns:
ReplicationLoadSink

getLoad

public int getLoad()
Originally, this method factored in the effect of requests going to the server as well. However, this does not interact very well with the current region rebalancing code, which only factors number of regions. For the interim, until we can figure out how to make rebalancing use all the info available, we're just going to make load purely the number of regions.

Returns:
load factor for this server

getRegionsLoad

public Map<byte[],RegionLoad> getRegionsLoad()
Returns:
region load metrics

getRegionServerCoprocessors

public String[] getRegionServerCoprocessors()
Return the RegionServer-level coprocessors

Returns:
string array of loaded RegionServer-level coprocessors

getRsCoprocessors

public String[] getRsCoprocessors()
Return the RegionServer-level and Region-level coprocessors

Returns:
string array of loaded RegionServer-level and Region-level coprocessors

getRequestsPerSecond

public double getRequestsPerSecond()
Returns:
number of requests per second received since the last report

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.