GigaSpaces XAP 9.1 API

org.openspaces.admin.pu.statistics
Class LastSampleTimeWindowStatisticsConfig

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


Constructor Summary
LastSampleTimeWindowStatisticsConfig()
           
LastSampleTimeWindowStatisticsConfig(Map<String,String> properties)
           
 
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.
 
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

LastSampleTimeWindowStatisticsConfig

public LastSampleTimeWindowStatisticsConfig()

LastSampleTimeWindowStatisticsConfig

public LastSampleTimeWindowStatisticsConfig(Map<String,String> properties)
Method Detail

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.

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.