org.openspaces.admin.pu.statistics
Class ThroughputTimeWindowStatisticsConfig
java.lang.Object
org.openspaces.admin.config.AbstractConfig
org.openspaces.admin.pu.statistics.AbstractTimeWindowStatisticsConfig
org.openspaces.admin.pu.statistics.ThroughputTimeWindowStatisticsConfig
- All Implemented Interfaces:
- org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig, TimeWindowStatisticsConfig
public class ThroughputTimeWindowStatisticsConfig
- extends AbstractTimeWindowStatisticsConfig
- implements org.openspaces.admin.internal.pu.statistics.StatisticsObjectListFunction, InstancesStatisticsConfig
Calculates the throughput (requests per second)by taking total request count and dividing by time
- Since:
- 9.0.0
- Author:
- gal
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. |
ThroughputTimeWindowStatisticsConfig
public ThroughputTimeWindowStatisticsConfig()
ThroughputTimeWindowStatisticsConfig
public ThroughputTimeWindowStatisticsConfig(Map<String,String> properties)
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
Copyright © GigaSpaces.