@Service public class ControlPlaneMonitor extends Object implements org.onosproject.cpman.ControlPlaneMonitorService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
| Constructor and Description |
|---|
ControlPlaneMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
Set<String> |
availableResources(org.onosproject.cpman.ControlResource.Type resourceType) |
void |
deactivate() |
org.onosproject.cpman.ControlLoad |
getLoad(org.onosproject.cluster.NodeId nodeId,
org.onosproject.cpman.ControlMetricType type,
Optional<org.onosproject.net.DeviceId> deviceId) |
org.onosproject.cpman.ControlLoad |
getLoad(org.onosproject.cluster.NodeId nodeId,
org.onosproject.cpman.ControlMetricType type,
String resourceName) |
void |
updateMetric(org.onosproject.cpman.ControlMetric cm,
int updateIntervalInMinutes,
Optional<org.onosproject.net.DeviceId> deviceId) |
void |
updateMetric(org.onosproject.cpman.ControlMetric cm,
int updateIntervalInMinutes,
String resourceName) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Activate public void activate()
@Deactivate public void deactivate()
public void updateMetric(org.onosproject.cpman.ControlMetric cm,
int updateIntervalInMinutes,
Optional<org.onosproject.net.DeviceId> deviceId)
updateMetric in interface org.onosproject.cpman.ControlPlaneMonitorServicepublic void updateMetric(org.onosproject.cpman.ControlMetric cm,
int updateIntervalInMinutes,
String resourceName)
updateMetric in interface org.onosproject.cpman.ControlPlaneMonitorServicepublic org.onosproject.cpman.ControlLoad getLoad(org.onosproject.cluster.NodeId nodeId,
org.onosproject.cpman.ControlMetricType type,
Optional<org.onosproject.net.DeviceId> deviceId)
getLoad in interface org.onosproject.cpman.ControlPlaneMonitorServicepublic org.onosproject.cpman.ControlLoad getLoad(org.onosproject.cluster.NodeId nodeId,
org.onosproject.cpman.ControlMetricType type,
String resourceName)
getLoad in interface org.onosproject.cpman.ControlPlaneMonitorServiceCopyright © 2016. All rights reserved.