Package org.onosproject.net.statistic
Interface PortStatisticsService
-
@Beta public interface PortStatisticsService
Service for obtaining statistic information about device ports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PortStatisticsService.MetricType
Specifies the type of metric.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Load
load(ConnectPoint connectPoint)
Obtain the egress load for the given port in terms of bytes per second.default Load
load(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
-
-