Package org.onosproject.net.statistic
Class PollInterval
- java.lang.Object
- 
- org.onosproject.net.statistic.PollInterval
 
- 
 public final class PollInterval extends Object Default polling interval values.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedPollInterval()Creates an default poll interval.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAvgPollInterval()Returns average poll interval value in seconds.longgetEntirePollInterval()Returns entire poll interval value in seconds.static PollIntervalgetInstance()Returns the singleton PollInterval instance class for FlowStatisticService and other statistic services.longgetLongPollInterval()Returns long poll interval value in seconds.longgetMidPollInterval()Returns mid poll interval value in seconds.longgetPollInterval()Returns default poll interval value in seconds.voidsetEntirePollInterval(long newPollInterval)Sets the entire poll interval in seconds.voidsetLongPollInterval(long newPollInterval)Sets the long poll interval in seconds.voidsetMidPollInterval(long newPollInterval)Sets the mid poll interval in seconds.voidsetPollInterval(long newPollInterval)Sets the poll interval in seconds.
 
- 
- 
- 
Method Detail- 
getInstancepublic static PollInterval getInstance() Returns the singleton PollInterval instance class for FlowStatisticService and other statistic services. This instance is only used Adaptive Flow Sampling(adaptiveFlowSampling) mode is enabled(true).- Returns:
- the singleton PollInterval instance class
 
 - 
setPollIntervalpublic void setPollInterval(long newPollInterval) Sets the poll interval in seconds. Used solely for the purpose of computing the load.- Parameters:
- newPollInterval- poll interval duration in seconds
 
 - 
setMidPollIntervalpublic void setMidPollInterval(long newPollInterval) Sets the mid poll interval in seconds. Used solely for the purpose of computing the load.- Parameters:
- newPollInterval- poll interval duration in seconds
 
 - 
setLongPollIntervalpublic void setLongPollInterval(long newPollInterval) Sets the long poll interval in seconds. Used solely for the purpose of computing the load.- Parameters:
- newPollInterval- poll interval duration in seconds
 
 - 
setEntirePollIntervalpublic void setEntirePollInterval(long newPollInterval) Sets the entire poll interval in seconds. Used solely for the purpose of computing the load.- Parameters:
- newPollInterval- poll interval duration in seconds
 
 - 
getPollIntervalpublic long getPollInterval() Returns default poll interval value in seconds.- Returns:
- default poll interval
 
 - 
getMidPollIntervalpublic long getMidPollInterval() Returns mid poll interval value in seconds.- Returns:
- mid poll interval
 
 - 
getLongPollIntervalpublic long getLongPollInterval() Returns long poll interval value in seconds.- Returns:
- long poll interval
 
 - 
getEntirePollIntervalpublic long getEntirePollInterval() Returns entire poll interval value in seconds.- Returns:
- entire poll interval
 
 - 
getAvgPollIntervalpublic long getAvgPollInterval() Returns average poll interval value in seconds.- Returns:
- average poll interval
 
 
- 
 
-