org.openspaces.admin.pu.statistics
Class LastSampleTimeWindowStatisticsConfig
java.lang.Object
org.openspaces.admin.config.AbstractConfig
org.openspaces.admin.pu.statistics.LastSampleTimeWindowStatisticsConfig
- All Implemented Interfaces:
- org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, TimeWindowStatisticsConfig
public class LastSampleTimeWindowStatisticsConfig
- extends AbstractConfig
- implements TimeWindowStatisticsConfig, org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction
Method Summary |
Object |
calc(org.openspaces.admin.internal.pu.statistics.StatisticsObjectList values)
Applies this statistics function on the specified values |
int |
getMaxNumberOfSamples(long statisticsPollingInterval,
TimeUnit timeUnit)
|
void |
validate()
Checks the content of this config is valid. |
LastSampleTimeWindowStatisticsConfig
public LastSampleTimeWindowStatisticsConfig()
LastSampleTimeWindowStatisticsConfig
public LastSampleTimeWindowStatisticsConfig(Map<String,String> properties)
validate
public void validate()
throws IllegalStateException
- Description copied from interface:
TimeWindowStatisticsConfig
- Checks the content of this config is valid.
- Specified by:
validate
in interface TimeWindowStatisticsConfig
- Throws:
IllegalStateException
- - if state is found to be illegal
calc
public Object calc(org.openspaces.admin.internal.pu.statistics.StatisticsObjectList values)
- Description copied from interface:
org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction
- Applies this statistics function on the specified values
- Specified by:
calc
in interface org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction
getMaxNumberOfSamples
public int getMaxNumberOfSamples(long statisticsPollingInterval,
TimeUnit timeUnit)
- Specified by:
getMaxNumberOfSamples
in interface TimeWindowStatisticsConfig
- Returns:
- the maximum number of samples required given the specified interval between consecutive samples.
Copyright © GigaSpaces.