GigaSpaces XAP 10.0.1 API

org.openspaces.admin.pu.statistics
Class CpuPercentageTimeWindowStatisticsConfig

java.lang.Object
  extended by org.openspaces.admin.config.AbstractConfig
      extended by org.openspaces.admin.pu.statistics.AbstractTimeWindowStatisticsConfig
          extended by org.openspaces.admin.pu.statistics.CpuPercentageTimeWindowStatisticsConfig
All Implemented Interfaces:
org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig, TimeWindowStatisticsConfig

public class CpuPercentageTimeWindowStatisticsConfig
extends AbstractTimeWindowStatisticsConfig
implements org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig

Calculates the cpu percentage by dividing the total CPU values by delta time passed in milliseconds.

Since:
9.0.0
Author:
gal

Constructor Summary
CpuPercentageTimeWindowStatisticsConfig()
           
CpuPercentageTimeWindowStatisticsConfig(Map<String,String> properties)
           
 
Method Summary
 Object calc(org.openspaces.admin.internal.pu.statistics.StatisticsObjectList values)
          Applies this statistics function on the specified values
 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.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.InstancesStatisticsConfig
getProperties
 
Methods inherited from interface org.openspaces.admin.pu.statistics.TimeWindowStatisticsConfig
getProperties
 

Constructor Detail

CpuPercentageTimeWindowStatisticsConfig

public CpuPercentageTimeWindowStatisticsConfig()

CpuPercentageTimeWindowStatisticsConfig

public CpuPercentageTimeWindowStatisticsConfig(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 InstancesStatisticsConfig
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 10.0.1 API

Copyright © GigaSpaces.