Package org.apache.hadoop.hbase
Class ClusterMetricsBuilder
java.lang.Object
org.apache.hadoop.hbase.ClusterMetricsBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<ServerName>
private Boolean
private String
private List<ServerName>
private List<ServerName>
private String
private Map<ServerName,
ServerMetrics> private int
private ServerName
private List<ServerTask>
private List<RegionState>
private List<ServerName>
private Map<TableName,
RegionStatesCount> private List<ServerName>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ClusterMetricsBuilder
setBackerMasterNames
(List<ServerName> value) setBalancerOn
(Boolean value) setClusterId
(String value) setDeadServerNames
(List<ServerName> value) setHBaseVersion
(String value) setMasterCoprocessorNames
(List<String> value) setMasterInfoPort
(int value) setMasterName
(ServerName value) setMasterTasks
(List<ServerTask> masterTasks) setRegionsInTransition
(List<RegionState> value) setServerNames
(List<ServerName> serversName) setTableRegionStatesCount
(Map<TableName, RegionStatesCount> tableRegionStatesCount) setUnknownServerNames
(List<ServerName> value) static ClusterMetrics
toClusterMetrics
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ClusterStatus proto) static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ClusterStatus
toClusterStatus
(ClusterMetrics metrics) static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option
toOption
(ClusterMetrics.Option option) Convert ClusterMetrics.Option to ClusterStatusProtos.Optionstatic ClusterMetrics.Option
toOption
(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option option) Convert ClusterStatusProtos.Option to ClusterMetrics.Optionstatic List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option>
toOptions
(EnumSet<ClusterMetrics.Option> options) Convert an enum set of ClusterMetrics.Option to a list of ClusterStatusProtos.Optionstatic EnumSet<ClusterMetrics.Option>
toOptions
(List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option> options) Convert a list of ClusterStatusProtos.Option to an enum set of ClusterMetrics.Option
-
Field Details
-
hbaseVersion
-
deadServerNames
-
unknownServerNames
-
liveServerMetrics
-
masterName
-
backupMasterNames
-
regionsInTransition
-
clusterId
-
masterCoprocessorNames
-
balancerOn
-
masterInfoPort
-
serversName
-
tableRegionStatesCount
-
masterTasks
-
decommissionedServerNames
-
-
Constructor Details
-
ClusterMetricsBuilder
private ClusterMetricsBuilder()
-
-
Method Details
-
toClusterStatus
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ClusterStatus toClusterStatus(ClusterMetrics metrics) -
toClusterMetrics
public static ClusterMetrics toClusterMetrics(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ClusterStatus proto) -
toOption
public static ClusterMetrics.Option toOption(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option option) Convert ClusterStatusProtos.Option to ClusterMetrics.Option- Parameters:
option
- a ClusterStatusProtos.Option- Returns:
- converted ClusterMetrics.Option
-
toOption
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option toOption(ClusterMetrics.Option option) Convert ClusterMetrics.Option to ClusterStatusProtos.Option- Parameters:
option
- a ClusterMetrics.Option- Returns:
- converted ClusterStatusProtos.Option
-
toOptions
public static EnumSet<ClusterMetrics.Option> toOptions(List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option> options) Convert a list of ClusterStatusProtos.Option to an enum set of ClusterMetrics.Option- Parameters:
options
- the pb options- Returns:
- an enum set of ClusterMetrics.Option
-
toOptions
public static List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Option> toOptions(EnumSet<ClusterMetrics.Option> options) Convert an enum set of ClusterMetrics.Option to a list of ClusterStatusProtos.Option- Parameters:
options
- the ClusterMetrics options- Returns:
- a list of ClusterStatusProtos.Option
-
newBuilder
-
setHBaseVersion
-
setDeadServerNames
-
setUnknownServerNames
-
setLiveServerMetrics
-
setMasterName
-
setBackerMasterNames
-
setRegionsInTransition
-
setClusterId
-
setMasterCoprocessorNames
-
setBalancerOn
-
setMasterInfoPort
-
setServerNames
-
setMasterTasks
-
setDecommissionedServerNames
-
setTableRegionStatesCount
public ClusterMetricsBuilder setTableRegionStatesCount(Map<TableName, RegionStatesCount> tableRegionStatesCount) -
build
-