public final class DefaultMetricsDatabase extends Object implements org.onosproject.cpman.MetricsDatabase
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultMetricsDatabase.Builder |
| Modifier and Type | Method and Description |
|---|---|
long |
lastUpdate(String metricType) |
double |
maxMetric(String metricType) |
String |
metricName() |
double[] |
metrics(String metricType) |
double[] |
metrics(String metricType,
long startTime,
long endTime) |
double |
minMetric(String metricType) |
double |
recentMetric(String metricType) |
double[] |
recentMetrics(String metricType,
int duration,
TimeUnit unit) |
void |
updateMetric(String metricType,
double value) |
void |
updateMetric(String metricType,
double value,
long time) |
void |
updateMetrics(Map<String,Double> metrics) |
void |
updateMetrics(Map<String,Double> metrics,
long time) |
public String metricName()
metricName in interface org.onosproject.cpman.MetricsDatabasepublic void updateMetric(String metricType, double value)
updateMetric in interface org.onosproject.cpman.MetricsDatabasepublic void updateMetric(String metricType, double value, long time)
updateMetric in interface org.onosproject.cpman.MetricsDatabasepublic void updateMetrics(Map<String,Double> metrics)
updateMetrics in interface org.onosproject.cpman.MetricsDatabasepublic void updateMetrics(Map<String,Double> metrics, long time)
updateMetrics in interface org.onosproject.cpman.MetricsDatabasepublic double recentMetric(String metricType)
recentMetric in interface org.onosproject.cpman.MetricsDatabasepublic double[] recentMetrics(String metricType, int duration, TimeUnit unit)
recentMetrics in interface org.onosproject.cpman.MetricsDatabasepublic double minMetric(String metricType)
minMetric in interface org.onosproject.cpman.MetricsDatabasepublic double maxMetric(String metricType)
maxMetric in interface org.onosproject.cpman.MetricsDatabasepublic double[] metrics(String metricType)
metrics in interface org.onosproject.cpman.MetricsDatabasepublic double[] metrics(String metricType, long startTime, long endTime)
metrics in interface org.onosproject.cpman.MetricsDatabasepublic long lastUpdate(String metricType)
lastUpdate in interface org.onosproject.cpman.MetricsDatabaseCopyright © 2016. All rights reserved.