use of org.onosproject.cpman.ControlMetric in project onos by opennetworkinglab.
the class ControlPlaneMonitorTest method testUpdateMetricWithId.
private void testUpdateMetricWithId(ControlMetricType cmt, MetricValue mv, DeviceId did) {
ControlMetric cm = new ControlMetric(cmt, mv);
monitor.updateMetric(cm, UPDATE_INTERVAL, Optional.of(did));
}
use of org.onosproject.cpman.ControlMetric in project onos by opennetworkinglab.
the class ControlPlaneMonitorTest method testUpdateMetricWithResource.
private void testUpdateMetricWithResource(ControlMetricType cmt, MetricValue mv, String resourceName) {
ControlMetric cm = new ControlMetric(cmt, mv);
monitor.updateMetric(cm, UPDATE_INTERVAL, resourceName);
}
Aggregations