Interface ExtendedStatisticsContainer
- All Known Implementing Classes:
BaseExtendedStatisticsContainer,LocalExtendedStatisticsContainer,RemoteExtendedStatisticsContainer
public interface ExtendedStatisticsContainer
Contains the statistic's values and allows to perform modifications on them.
- Since:
- 6.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(ExtendedStatistic statistic, double value) it adds the value to the statistic.doublegetValue(ExtendedStatistic statistic) voidmergeTo(ConcurrentGlobalContainer globalContainer) it merges inthisthe statistic's values inother.
-
Method Details
-
addValue
it adds the value to the statistic. If the statistic does not exist in this container, it fails silently -
getValue
- Returns:
- the current value of the statistic
- Throws:
ExtendedStatisticNotFoundException- if the statistic was not found in this container
-
mergeTo
it merges inthisthe statistic's values inother. If for some reason theothercannot be merged, it fails silently
-