org.openspaces.admin.pu.statistics
Class AbstractTimeWindowStatisticsConfig
java.lang.Object
org.openspaces.admin.config.AbstractConfig
org.openspaces.admin.pu.statistics.AbstractTimeWindowStatisticsConfig
- All Implemented Interfaces:
- TimeWindowStatisticsConfig
- Direct Known Subclasses:
- AverageTimeWindowStatisticsConfig, CpuPercentageTimeWindowStatisticsConfig, MaximumTimeWindowStatisticsConfig, MinimumTimeWindowStatisticsConfig, PercentileTimeWindowStatisticsConfig, ThroughputTimeWindowStatisticsConfig
public abstract class AbstractTimeWindowStatisticsConfig
- extends AbstractConfig
- implements TimeWindowStatisticsConfig
Base class for statistics configurations that aggregate samples based on a specified time window
- Since:
- 9.0.0
- Author:
- itaif
AbstractTimeWindowStatisticsConfig
protected AbstractTimeWindowStatisticsConfig(Map<String,String> properties)
getTimeWindowSeconds
public Long getTimeWindowSeconds()
- Returns:
- the timeWindowSeconds
setTimeWindowSeconds
public void setTimeWindowSeconds(long timeWindowSeconds)
- Parameters:
timeWindowSeconds
- the timeWindowSeconds to set
getMinimumTimeWindowSeconds
public Long getMinimumTimeWindowSeconds()
- Returns:
- the minimumTimeWindowSeconds
setMinimumTimeWindowSeconds
public void setMinimumTimeWindowSeconds(long minimumTimeWindowSeconds)
- Parameters:
minimumTimeWindowSeconds
- the minimumTimeWindowSeconds to set
getMaximumTimeWindowSeconds
public Long getMaximumTimeWindowSeconds()
- Returns:
- the maximumTimeWindowSeconds
setMaximumTimeWindowSeconds
public void setMaximumTimeWindowSeconds(long maximumTimeWindowSeconds)
- Parameters:
maximumTimeWindowSeconds
- the maximumTimeWindowSeconds to set
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
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.