GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.statistics
Class AbstractTimeWindowStatisticsConfig

java.lang.Object
  extended by org.openspaces.admin.config.AbstractConfig
      extended by 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

Constructor Summary
protected AbstractTimeWindowStatisticsConfig(Map<String,String> properties)
           
 
Method Summary
 Long getMaximumTimeWindowSeconds()
           
 int getMaxNumberOfSamples(long statisticsPollingInterval, TimeUnit timeUnit)
           
 Long getMinimumTimeWindowSeconds()
           
 Long getTimeWindowSeconds()
           
 void setMaximumTimeWindowSeconds(long maximumTimeWindowSeconds)
           
 void setMinimumTimeWindowSeconds(long minimumTimeWindowSeconds)
           
 void setTimeWindowSeconds(long timeWindowSeconds)
           
 void validate()
          Checks the content of this config is valid.
 
Methods inherited from class org.openspaces.admin.config.AbstractConfig
equals, getProperties, getStringProperties, hashCode, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.admin.pu.statistics.TimeWindowStatisticsConfig
getProperties
 

Constructor Detail

AbstractTimeWindowStatisticsConfig

protected AbstractTimeWindowStatisticsConfig(Map<String,String> properties)
Method Detail

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.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.