@InterfaceAudience.Private public final class UserMetricsBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UserMetricsBuilder.ClientMetricsImpl |
private static class |
UserMetricsBuilder.UserMetricsImpl |
Modifier and Type | Field and Description |
---|---|
private Map<String,UserMetrics.ClientMetrics> |
clientMetricsMap |
private byte[] |
name |
Modifier | Constructor and Description |
---|---|
private |
UserMetricsBuilder(byte[] name) |
Modifier and Type | Method and Description |
---|---|
UserMetricsBuilder |
addClientMetris(UserMetrics.ClientMetrics clientMetrics) |
UserMetrics |
build() |
static UserMetricsBuilder |
newBuilder(byte[] name) |
static UserMetrics |
toUserMetrics(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad userLoad) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad |
toUserMetrics(UserMetrics userMetrics) |
private final byte[] name
private Map<String,UserMetrics.ClientMetrics> clientMetricsMap
private UserMetricsBuilder(byte[] name)
public static UserMetrics toUserMetrics(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad userLoad)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad toUserMetrics(UserMetrics userMetrics)
public static UserMetricsBuilder newBuilder(byte[] name)
public UserMetricsBuilder addClientMetris(UserMetrics.ClientMetrics clientMetrics)
public UserMetrics build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.