GigaSpaces XAP 9.0 API

org.openspaces.admin.pu.statistics
Class PercentileTimeWindowStatisticsConfig

java.lang.Object
  extended by org.openspaces.admin.pu.elastic.config.AbstractStatisticsConfig
      extended by org.openspaces.admin.pu.statistics.AbstractTimeWindowStatisticsConfig
          extended by org.openspaces.admin.pu.statistics.PercentileTimeWindowStatisticsConfig
All Implemented Interfaces:
org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, TimeWindowStatisticsConfig

public class PercentileTimeWindowStatisticsConfig
extends AbstractTimeWindowStatisticsConfig
implements org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction

Picks the Nth percentile of time window instance values. The default percentile value is 50 (median)

Since:
9.0.0
Author:
itaif

Constructor Summary
PercentileTimeWindowStatisticsConfig()
           
PercentileTimeWindowStatisticsConfig(Map<String,String> properties)
           
 
Method Summary
 Object calc(org.openspaces.admin.internal.pu.statistics.StatisticsObjectList values)
          Applies this statistics function on the specified values
 double getPercentile()
           
 void setPercentile(double percentile)
           
 void validate()
          Checks the content of this config is valid.
 
Methods inherited from class org.openspaces.admin.pu.statistics.AbstractTimeWindowStatisticsConfig
getMaximumTimeWindowSeconds, getMaxNumberOfSamples, getMinimumTimeWindowSeconds, getTimeWindowSeconds, setMaximumTimeWindowSeconds, setMinimumTimeWindowSeconds, setTimeWindowSeconds
 
Methods inherited from class org.openspaces.admin.pu.elastic.config.AbstractStatisticsConfig
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

PercentileTimeWindowStatisticsConfig

public PercentileTimeWindowStatisticsConfig()

PercentileTimeWindowStatisticsConfig

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

getPercentile

public double getPercentile()

setPercentile

public void setPercentile(double percentile)

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
Overrides:
validate in class AbstractTimeWindowStatisticsConfig
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

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.