Package org.apache.hadoop.hbase
Class ServerLoad
java.lang.Object
org.apache.hadoop.hbase.ServerLoad
- All Implemented Interfaces:
ServerMetrics
Deprecated.
This class is used for exporting current state of load on a RegionServer.
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
Deprecated.static final ServerLoad
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UseServerMetricsBuilder.of(ServerName)
instead.private long
Deprecated.private int
Deprecated.private final ServerMetrics
Deprecated.private long
Deprecated.private int
Deprecated.protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad
Deprecated.private long
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private long
Deprecated.private int
Deprecated.private int
Deprecated.private long
Deprecated. -
Constructor Summary
ConstructorDescriptionServerLoad
(ServerMetrics metrics) Deprecated.ServerLoad
(ServerName name, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad) Deprecated.ServerLoad
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad) Deprecated.DONT USE this construction. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Return the RegionServer-level and Region-level coprocessorslong
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.long
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.long
Deprecated.Returns the last timestamp (server side) of generating this metricsint
getLoad()
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetNumberOfRegions()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetMaxHeapSize()
instead.Deprecated.Returns the maximum allowable size of the heapint
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.long
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.long
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.Deprecated.Returns the region cache information for the regions hosted on this serverMap<byte[],
RegionMetrics> Deprecated.Returns region load metricsString[]
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCoprocessorNames()
instead.Map<byte[],
RegionLoad> Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.Deprecated.Call directly from client such as hbase shellDeprecated.Call directly from client such as hbase shellDeprecated.Call directly from client such as hbase shelllong
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetReportTimestamp()
instead.long
Deprecated.Returns the timestamp (server side) of generating this metricslong
Deprecated.Returns total Number of requests from the start of the region server.long
Deprecated.Returns the number of requests per second.double
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRequestCountPerSecond()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.String[]
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCoprocessorNames()
instead.Deprecated.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.long
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.getTasks()
Deprecated.Called directly from clients such as the hbase shelllong
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.long
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.Deprecated.Returns the amount of used heapMap<byte[],
UserMetrics> Deprecated.Returns metrics per userlong
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead.int
hashCode()
Deprecated.boolean
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0boolean
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0boolean
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0boolean
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad
Deprecated.DONT use this pb object since the byte array backed may be modified in rpc layertoString()
Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.ServerMetrics
getVersion, getVersionNumber
-
Field Details
-
metrics
Deprecated. -
stores
Deprecated. -
storefiles
Deprecated. -
storeUncompressedSizeMB
Deprecated. -
storefileSizeMB
Deprecated. -
memstoreSizeMB
Deprecated. -
storefileIndexSizeKB
Deprecated. -
readRequestsCount
Deprecated. -
filteredReadRequestsCount
Deprecated. -
writeRequestsCount
Deprecated. -
rootIndexSizeKB
Deprecated. -
totalStaticIndexSizeKB
Deprecated. -
totalStaticBloomSizeKB
Deprecated. -
totalCompactingKVs
Deprecated. -
currentCompactedKVs
Deprecated. -
serverLoad
protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadDeprecated. -
EMPTY_SERVERLOAD
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UseServerMetricsBuilder.of(ServerName)
instead.
-
-
Constructor Details
-
ServerLoad
@Private public ServerLoad(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad) Deprecated.DONT USE this construction. It make a fake server name; -
ServerLoad
@Private public ServerLoad(ServerName name, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoad) Deprecated. -
ServerLoad
Deprecated.
-
-
Method Details
-
obtainServerLoadPB
@Private @Deprecated public org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad obtainServerLoadPB()Deprecated.DONT use this pb object since the byte array backed may be modified in rpc layerNOTE: Function name cannot start with "get" because then an OpenDataException is thrown because HBaseProtos.ServerLoad cannot be converted to an open data type(see HBASE-5967).- Returns:
- the underlying ServerLoad protobuf object
-
getNumberOfRequests
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsegetRequestCountPerSecond()
instead.- Returns:
- number of requests since last report.
-
hasNumberOfRequests
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0 -
getTotalNumberOfRequests
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsegetRequestCount()
instead.- Returns:
- total Number of requests from the start of the region server.
-
hasTotalNumberOfRequests
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0 -
getUsedHeapMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsegetUsedHeapSize()
instead.- Returns:
- the amount of used heap, in MB.
-
hasUsedHeapMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0 -
getMaxHeapMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetMaxHeapSize()
instead.- Returns:
- the maximum allowable size of the heap, in MB.
-
hasMaxHeapMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 No flag in 2.0 -
getStores
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getStorefiles
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsegetRegionMetrics()
instead. -
getStoreUncompressedSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getStorefileSizeInMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getStorefileSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getMemstoreSizeInMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getMemStoreSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getStorefileIndexSizeInMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getStorefileIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getReadRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getFilteredReadRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getWriteRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getRootIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getTotalStaticIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getTotalStaticBloomSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getTotalCompactingKVs
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getCurrentCompactedKVs
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getNumberOfRegions
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getServerName
Deprecated.- Specified by:
getServerName
in interfaceServerMetrics
-
getRequestCountPerSecond
Deprecated.Description copied from interface:ServerMetrics
Returns the number of requests per second.- Specified by:
getRequestCountPerSecond
in interfaceServerMetrics
-
getRequestCount
Deprecated.Description copied from interface:ServerMetrics
Returns total Number of requests from the start of the region server.- Specified by:
getRequestCount
in interfaceServerMetrics
-
getUsedHeapSize
Deprecated.Description copied from interface:ServerMetrics
Returns the amount of used heap- Specified by:
getUsedHeapSize
in interfaceServerMetrics
-
getMaxHeapSize
Deprecated.Description copied from interface:ServerMetrics
Returns the maximum allowable size of the heap- Specified by:
getMaxHeapSize
in interfaceServerMetrics
-
getInfoServerPort
Deprecated.- Specified by:
getInfoServerPort
in interfaceServerMetrics
-
getReplicationLoadSourceList
Deprecated.Call directly from client such as hbase shell- Specified by:
getReplicationLoadSourceList
in interfaceServerMetrics
- Returns:
- the list of ReplicationLoadSource
-
getReplicationLoadSourceMap
Deprecated.Call directly from client such as hbase shell- Specified by:
getReplicationLoadSourceMap
in interfaceServerMetrics
- Returns:
- a map of ReplicationLoadSource list per peer id
-
getReplicationLoadSink
Deprecated.Call directly from client such as hbase shell- Specified by:
getReplicationLoadSink
in interfaceServerMetrics
-
getRegionMetrics
Deprecated.Description copied from interface:ServerMetrics
Returns region load metrics- Specified by:
getRegionMetrics
in interfaceServerMetrics
-
getUserMetrics
Deprecated.Description copied from interface:ServerMetrics
Returns metrics per user- Specified by:
getUserMetrics
in interfaceServerMetrics
-
getCoprocessorNames
Deprecated.Description copied from interface:ServerMetrics
Return the RegionServer-level and Region-level coprocessors- Specified by:
getCoprocessorNames
in interfaceServerMetrics
- Returns:
- string set of loaded RegionServer-level and Region-level coprocessors
-
getReportTimestamp
Deprecated.Description copied from interface:ServerMetrics
Returns the timestamp (server side) of generating this metrics- Specified by:
getReportTimestamp
in interfaceServerMetrics
-
getLastReportTimestamp
Deprecated.Description copied from interface:ServerMetrics
Returns the last timestamp (server side) of generating this metrics- Specified by:
getLastReportTimestamp
in interfaceServerMetrics
-
getTasks
Deprecated.Description copied from interface:ServerMetrics
Called directly from clients such as the hbase shell- Specified by:
getTasks
in interfaceServerMetrics
- Returns:
- the active monitored tasks
-
getRegionCachedInfo
Deprecated.Description copied from interface:ServerMetrics
Returns the region cache information for the regions hosted on this server- Specified by:
getRegionCachedInfo
in interfaceServerMetrics
- Returns:
- map of region encoded name and the size of the region cached on this region server rounded to MB
-
getLoad
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetNumberOfRegions()
instead.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
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionMetrics()
instead. -
getRegionServerCoprocessors
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCoprocessorNames()
instead. -
getRsCoprocessors
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCoprocessorNames()
instead. -
getRequestsPerSecond
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRequestCountPerSecond()
instead. -
toString
Deprecated. -
getReportTime
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetReportTimestamp()
instead. -
hashCode
Deprecated. -
equals
Deprecated.
-
ServerMetrics
instead.