public interface ControlPlaneStatsService
| Modifier and Type | Method and Description |
|---|---|
ControlPlaneLoad |
getLoad(org.onosproject.cluster.NodeId nodeId,
ControlMetricType type,
Optional<org.onosproject.net.DeviceId> deviceId)
Obtain the control plane load of a specific device.
|
ControlPlaneLoad |
getLoad(org.onosproject.cluster.NodeId nodeId,
ControlMetricType type,
Optional<org.onosproject.net.DeviceId> deviceId,
int duration,
TimeUnit unit)
Obtain the control plane load of a specific device with a specific time duration.
|
void |
updateMetric(ControlPlaneMetric cpm,
int updateInterval)
Add a new control plane metric value with a certain update interval.
|
void updateMetric(ControlPlaneMetric cpm, int updateInterval)
cpm - control plane metric (e.g., control message rate, cpu, memory, etc.)updateInterval - value update interval (time unit will be in minute)ControlPlaneLoad getLoad(org.onosproject.cluster.NodeId nodeId, ControlMetricType type, Optional<org.onosproject.net.DeviceId> deviceId)
nodeId - node id NodeIdtype - control metric typedeviceId - device id DeviceIdControlPlaneLoad getLoad(org.onosproject.cluster.NodeId nodeId, ControlMetricType type, Optional<org.onosproject.net.DeviceId> deviceId, int duration, TimeUnit unit)
nodeId - node id NodeIdtype - control metric typeduration - time durationunit - time unitdeviceId - device id DeviceCopyright © 2015. All rights reserved.