Package org.onosproject.cpman
Interface ControlLoad
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long[]all()Obtains all metrics.longaverage()Obtains the average of all time duration.longaverage(int duration, TimeUnit unit)Obtains the average of the specified time duration.long[]recent(int duration, TimeUnit unit)Obtains the most recent metric values of the specified time duration.
-
-
-
Method Detail
-
average
long average(int duration, TimeUnit unit)Obtains the average of the specified time duration.- Parameters:
duration- time durationunit- time unit- Returns:
- average control plane metric value
-
average
long average()
Obtains the average of all time duration.- Returns:
- average control plane metric value
-
recent
long[] recent(int duration, TimeUnit unit)Obtains the most recent metric values of the specified time duration.- Parameters:
duration- time durationunit- time unit- Returns:
- a collection of the most recent metric values
-
all
long[] all()
Obtains all metrics.- Returns:
- a collection of the all metric values
-
-