@InterfaceAudience.Private public final class ServerMetricsBuilder extends Object
public static ServerMetrics of(ServerName sn)
sn
- the server namepublic static ServerMetrics of(ServerName sn, int versionNumber, String version)
public static ServerMetrics toServerMetrics(ClusterStatusProtos.LiveServerInfo serverInfo)
public static ServerMetrics toServerMetrics(ServerName serverName, ClusterStatusProtos.ServerLoad serverLoadPB)
public static ServerMetrics toServerMetrics(ServerName serverName, int versionNumber, String version, ClusterStatusProtos.ServerLoad serverLoadPB)
public static List<HBaseProtos.Coprocessor> toCoprocessor(Collection<String> names)
public static ClusterStatusProtos.ServerLoad toServerLoad(ServerMetrics metrics)
public static ServerMetricsBuilder newBuilder(ServerName sn)
public ServerMetricsBuilder setVersionNumber(int versionNumber)
public ServerMetricsBuilder setVersion(String version)
public ServerMetricsBuilder setRequestCountPerSecond(long value)
public ServerMetricsBuilder setRequestCount(long value)
public ServerMetricsBuilder setUsedHeapSize(Size value)
public ServerMetricsBuilder setMaxHeapSize(Size value)
public ServerMetricsBuilder setInfoServerPort(int value)
public ServerMetricsBuilder setReplicationLoadSources(List<ReplicationLoadSource> value)
public ServerMetricsBuilder setReplicationLoadSink(ReplicationLoadSink value)
public ServerMetricsBuilder setRegionMetrics(List<RegionMetrics> value)
public ServerMetricsBuilder setCoprocessorNames(List<String> value)
public ServerMetricsBuilder setReportTimestamp(long value)
public ServerMetricsBuilder setLastReportTimestamp(long value)
public ServerMetrics build()
Copyright © 2007–2019 Cloudera. All rights reserved.