@Service public class PortStatisticsManager extends java.lang.Object implements PortStatisticsService
PortStatisticsService.MetricType| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.device.DeviceService |
deviceService |
| Constructor and Description |
|---|
PortStatisticsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
org.onosproject.net.statistic.Load |
load(org.onosproject.net.ConnectPoint connectPoint)
Obtain the egress load for the given port in terms of bytes per second.
|
org.onosproject.net.statistic.Load |
load(org.onosproject.net.ConnectPoint connectPoint,
PortStatisticsService.MetricType metricType)
Obtain the egress load for the given port in terms of the specified metric.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Activate public void activate()
@Deactivate public void deactivate()
public org.onosproject.net.statistic.Load load(org.onosproject.net.ConnectPoint connectPoint)
PortStatisticsServiceload in interface PortStatisticsServiceconnectPoint - the port to querypublic org.onosproject.net.statistic.Load load(org.onosproject.net.ConnectPoint connectPoint,
PortStatisticsService.MetricType metricType)
PortStatisticsServiceload in interface PortStatisticsServiceconnectPoint - the port to querymetricType - metric type