Package org.infinispan.stats.container
Class LocalExtendedStatisticsContainer
- java.lang.Object
-
- org.infinispan.stats.container.BaseExtendedStatisticsContainer
-
- org.infinispan.stats.container.LocalExtendedStatisticsContainer
-
- All Implemented Interfaces:
ExtendedStatisticsContainer
public class LocalExtendedStatisticsContainer extends BaseExtendedStatisticsContainer
Container for the statistics corresponding to local originated transactions. It only knows how to merge from othersLocalExtendedStatisticsContainer
- Since:
- 6.0
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.stats.container.BaseExtendedStatisticsContainer
stats
-
-
Constructor Summary
Constructors Constructor Description LocalExtendedStatisticsContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getIndex(ExtendedStatistic statistic)
void
mergeTo(ConcurrentGlobalContainer globalContainer)
it merges inthis
the statistic's values inother
.String
toString()
-
Methods inherited from class org.infinispan.stats.container.BaseExtendedStatisticsContainer
addValue, getValue
-
-
-
-
Method Detail
-
mergeTo
public final void mergeTo(ConcurrentGlobalContainer globalContainer)
Description copied from interface:ExtendedStatisticsContainer
it merges inthis
the statistic's values inother
. If for some reason theother
cannot be merged, it fails silently
-
getIndex
protected final int getIndex(ExtendedStatistic statistic)
- Specified by:
getIndex
in classBaseExtendedStatisticsContainer
- Returns:
- the index of the statistic in this container. It return
ExtendedStatistic.NO_INDEX
if the statistic does not exist in this container
-
-