Package alluxio.metrics
Class MetricKey.Builder
- java.lang.Object
-
- alluxio.metrics.MetricKey.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricKey
build()
Creates and registers the Metric key.MetricKey.Builder
setDescription(java.lang.String description)
MetricKey.Builder
setIsClusterAggregated(boolean isClusterAggregated)
MetricKey.Builder
setMetricType(alluxio.grpc.MetricType metricType)
MetricKey.Builder
setName(java.lang.String name)
-
-
-
Method Detail
-
setName
public MetricKey.Builder setName(java.lang.String name)
- Parameters:
name
- name for the Metric- Returns:
- the updated builder instance
-
setDescription
public MetricKey.Builder setDescription(java.lang.String description)
- Parameters:
description
- of the Metric- Returns:
- the updated builder instance
-
setIsClusterAggregated
public MetricKey.Builder setIsClusterAggregated(boolean isClusterAggregated)
- Parameters:
isClusterAggregated
- whether this metric can be aggregated at cluster level- Returns:
- the updated builder instance
-
setMetricType
public MetricKey.Builder setMetricType(alluxio.grpc.MetricType metricType)
- Parameters:
metricType
- the metric type of this metric- Returns:
- the updated builder instance
-
build
public MetricKey build()
Creates and registers the Metric key.- Returns:
- the created Metric key instance
-
-