Class LastSampleTimeWindowStatisticsConfig
java.lang.Object
org.openspaces.admin.config.AbstractConfig
org.openspaces.admin.pu.statistics.LastSampleTimeWindowStatisticsConfig
- All Implemented Interfaces:
StatisticsObjectListFunction,TimeWindowStatisticsConfig
public class LastSampleTimeWindowStatisticsConfig
extends AbstractConfig
implements TimeWindowStatisticsConfig, StatisticsObjectListFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalc(StatisticsObjectList values) Applies this statistics function on the specified valuesintgetMaxNumberOfSamples(long statisticsPollingInterval, TimeUnit timeUnit) voidvalidate()Checks the content of this config is valid.Methods inherited from class org.openspaces.admin.config.AbstractConfig
equals, getProperties, getStringProperties, hashCode, setProperties, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openspaces.admin.pu.statistics.TimeWindowStatisticsConfig
getProperties
-
Constructor Details
-
LastSampleTimeWindowStatisticsConfig
public LastSampleTimeWindowStatisticsConfig() -
LastSampleTimeWindowStatisticsConfig
-
-
Method Details
-
validate
Description copied from interface:TimeWindowStatisticsConfigChecks the content of this config is valid.- Specified by:
validatein interfaceTimeWindowStatisticsConfig- Throws:
IllegalStateException- - if state is found to be illegal
-
calc
Description copied from interface:StatisticsObjectListFunctionApplies this statistics function on the specified values- Specified by:
calcin interfaceStatisticsObjectListFunction
-
getMaxNumberOfSamples
- Specified by:
getMaxNumberOfSamplesin interfaceTimeWindowStatisticsConfig- Returns:
- the maximum number of samples required given the specified interval between consecutive samples.
-