org.openspaces.admin.pu.statistics
Class AverageInstancesStatisticsConfig
java.lang.Object
org.openspaces.admin.config.AbstractConfig
org.openspaces.admin.pu.statistics.AbstractInstancesStatisticsConfig
org.openspaces.admin.pu.statistics.AverageInstancesStatisticsConfig
- All Implemented Interfaces:
- org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig
public class AverageInstancesStatisticsConfig
- extends AbstractInstancesStatisticsConfig
- implements org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig
Calculates the average of all cluster instances values.
- Since:
- 9.0.0
- Author:
- itaif
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. |
AverageInstancesStatisticsConfig
public AverageInstancesStatisticsConfig()
AverageInstancesStatisticsConfig
public AverageInstancesStatisticsConfig(Map<String,String> properties)
validate
public void validate()
throws IllegalStateException
- Description copied from interface:
InstancesStatisticsConfig
- Checks the content of this config is valid.
- Specified by:
validate
in interface InstancesStatisticsConfig
- 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
Copyright © GigaSpaces.