Package org.onosproject.cpman
Interface MetricsDatabase.Builder
-
- Enclosing interface:
- MetricsDatabase
public static interface MetricsDatabase.Builder
A builder of MetricsDatabase.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricsDatabase.Builder
addMetricType(java.lang.String metricType)
Add a new metric to be monitored.MetricsDatabase
build()
Builds a metric database instance.MetricsDatabase.Builder
withMetricName(java.lang.String metricName)
Sets the metric name.MetricsDatabase.Builder
withResourceName(java.lang.String resourceName)
Sets the resource name.
-
-
-
Method Detail
-
withMetricName
MetricsDatabase.Builder withMetricName(java.lang.String metricName)
Sets the metric name.- Parameters:
metricName
- metric name- Returns:
- builder object
-
withResourceName
MetricsDatabase.Builder withResourceName(java.lang.String resourceName)
Sets the resource name.- Parameters:
resourceName
- resource name- Returns:
- builder object
-
addMetricType
MetricsDatabase.Builder addMetricType(java.lang.String metricType)
Add a new metric to be monitored.- Parameters:
metricType
- control metric type- Returns:
- builder object
-
build
MetricsDatabase build()
Builds a metric database instance.- Returns:
- metric database instance
-
-