Package org.onosproject.net.statistic
Interface PortStatisticsService
-
@Beta public interface PortStatisticsServiceService for obtaining statistic information about device ports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPortStatisticsService.MetricTypeSpecifies the type of metric.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Loadload(ConnectPoint connectPoint)Obtain the egress load for the given port in terms of bytes per second.default Loadload(ConnectPoint connectPoint, PortStatisticsService.MetricType metricType)Obtain the egress load for the given port in terms of the specified metric.
-
-
-
Method Detail
-
load
Load load(ConnectPoint connectPoint)
Obtain the egress load for the given port in terms of bytes per second.- Parameters:
connectPoint- the port to query- Returns:
- egress traffic load
-
load
default Load load(ConnectPoint connectPoint, PortStatisticsService.MetricType metricType)
Obtain the egress load for the given port in terms of the specified metric.- Parameters:
connectPoint- the port to querymetricType- metric type- Returns:
- egress traffic load
-
-