org.apache.hadoop.hbase
Class ServerLoad
java.lang.Object
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.
serverLoad
protected ClusterStatusProtos.ServerLoad serverLoad
EMPTY_SERVERLOAD
public static final ServerLoad EMPTY_SERVERLOAD
ServerLoad
public ServerLoad(ClusterStatusProtos.ServerLoad serverLoad)
obtainServerLoadPB
public 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 int getReadRequestsCount()
getWriteRequestsCount
public int 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()
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 © 2013 The Apache Software Foundation. All Rights Reserved.