public class LastSampleTimeWindowStatisticsConfig extends AbstractConfig implements TimeWindowStatisticsConfig, StatisticsObjectListFunction
| Constructor and Description |
|---|
LastSampleTimeWindowStatisticsConfig() |
LastSampleTimeWindowStatisticsConfig(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
Object |
calc(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.
|
equals, getProperties, getStringProperties, hashCode, setProperties, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertiespublic LastSampleTimeWindowStatisticsConfig()
public void validate()
throws IllegalStateException
TimeWindowStatisticsConfigvalidate in interface TimeWindowStatisticsConfigIllegalStateException - - if state is found to be illegalpublic Object calc(StatisticsObjectList values)
StatisticsObjectListFunctioncalc in interface StatisticsObjectListFunctionpublic int getMaxNumberOfSamples(long statisticsPollingInterval,
TimeUnit timeUnit)
getMaxNumberOfSamples in interface TimeWindowStatisticsConfigCopyright © GigaSpaces.