@InterfaceAudience.Private public final class ClusterMetricsBuilder extends Object
public static ClusterStatusProtos.ClusterStatus toClusterStatus(ClusterMetrics metrics)
public static ClusterMetrics toClusterMetrics(ClusterStatusProtos.ClusterStatus proto)
public static ClusterMetrics.Option toOption(ClusterStatusProtos.Option option)
option
- a ClusterStatusProtos.Optionpublic static ClusterStatusProtos.Option toOption(ClusterMetrics.Option option)
option
- a ClusterMetrics.Optionpublic static EnumSet<ClusterMetrics.Option> toOptions(List<ClusterStatusProtos.Option> options)
options
- the pb optionspublic static List<ClusterStatusProtos.Option> toOptions(EnumSet<ClusterMetrics.Option> options)
options
- the ClusterMetrics optionspublic static ClusterMetricsBuilder newBuilder()
public ClusterMetricsBuilder setHBaseVersion(String value)
public ClusterMetricsBuilder setDeadServerNames(List<ServerName> value)
public ClusterMetricsBuilder setLiveServerMetrics(Map<ServerName,ServerMetrics> value)
public ClusterMetricsBuilder setMasterName(ServerName value)
public ClusterMetricsBuilder setBackerMasterNames(List<ServerName> value)
public ClusterMetricsBuilder setRegionsInTransition(List<RegionState> value)
public ClusterMetricsBuilder setClusterId(String value)
public ClusterMetricsBuilder setMasterCoprocessorNames(List<String> value)
public ClusterMetricsBuilder setBalancerOn(@Nullable Boolean value)
public ClusterMetricsBuilder setMasterInfoPort(int value)
public ClusterMetrics build()
Copyright © 2007–2019 Cloudera. All rights reserved.