Package org.apache.hadoop.hbase
Class ServerMetricsBuilder
java.lang.Object
org.apache.hadoop.hbase.ServerMetricsBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private long
private Size
private long
private final Map<byte[],
RegionMetrics> private long
private long
private long
private final ServerName
private ReplicationLoadSink
private List<ReplicationLoadSource>
private final List<ServerTask>
private Size
private final Map<byte[],
UserMetrics> private String
private int
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ServerMetricsBuilder
newBuilder
(ServerName sn) static ServerMetrics
of
(ServerName sn) static ServerMetrics
of
(ServerName sn, int versionNumber, String version) setCoprocessorNames
(List<String> value) setInfoServerPort
(int value) setLastReportTimestamp
(long value) setMaxHeapSize
(Size value) setReadRequestCount
(long value) setRegionCachedInfo
(Map<String, Integer> value) setRegionMetrics
(List<RegionMetrics> value) setReportTimestamp
(long value) setRequestCount
(long value) setRequestCountPerSecond
(long value) setTasks
(List<ServerTask> tasks) setUsedHeapSize
(Size value) setUserMetrics
(List<UserMetrics> value) setVersion
(String version) setVersionNumber
(int versionNumber) setWriteRequestCount
(long value) static List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.Coprocessor>
toCoprocessor
(Collection<String> names) static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad
toServerLoad
(ServerMetrics metrics) static ServerMetrics
toServerMetrics
(ServerName serverName, int versionNumber, String version, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) static ServerMetrics
toServerMetrics
(ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) static ServerMetrics
toServerMetrics
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.LiveServerInfo serverInfo)
-
Field Details
-
serverName
-
versionNumber
-
version
-
requestCountPerSecond
-
requestCount
-
readRequestCount
-
writeRequestCount
-
usedHeapSize
-
maxHeapSize
-
infoServerPort
-
sources
-
sink
-
regionStatus
-
userMetrics
-
coprocessorNames
-
reportTimestamp
-
lastReportTimestamp
-
tasks
-
regionCachedInfo
-
-
Constructor Details
-
ServerMetricsBuilder
-
-
Method Details
-
of
-
of
-
toServerMetrics
public static ServerMetrics toServerMetrics(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.LiveServerInfo serverInfo) -
toServerMetrics
public static ServerMetrics toServerMetrics(ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) -
toServerMetrics
public static ServerMetrics toServerMetrics(ServerName serverName, int versionNumber, String version, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) -
toCoprocessor
public static List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.Coprocessor> toCoprocessor(Collection<String> names) -
toServerLoad
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad toServerLoad(ServerMetrics metrics) -
newBuilder
-
setVersionNumber
-
setVersion
-
setRequestCountPerSecond
-
setRequestCount
-
setReadRequestCount
-
setWriteRequestCount
-
setUsedHeapSize
-
setMaxHeapSize
-
setInfoServerPort
-
setReplicationLoadSources
-
setReplicationLoadSink
-
setRegionMetrics
-
setUserMetrics
-
setCoprocessorNames
-
setReportTimestamp
-
setLastReportTimestamp
-
setTasks
-
setRegionCachedInfo
-
build
-