Class IndexStatisticsSnapshotImpl
java.lang.Object
org.infinispan.query.core.stats.impl.IndexStatisticsSnapshotImpl
- All Implemented Interfaces:
JsonSerialization, IndexStatistics, IndexStatisticsSnapshot
@ProtoTypeId(4203)
public class IndexStatisticsSnapshotImpl
extends Object
implements IndexStatisticsSnapshot
A snapshot for
IndexStatistics.- Since:
- 12.0
-
Constructor Summary
ConstructorsConstructorDescriptionIndexStatisticsSnapshotImpl(List<org.infinispan.query.core.stats.impl.IndexEntry> entries, boolean reindexing, int genericIndexingFailures, int entityIndexingFailures) IndexStatisticsSnapshotImpl(Map<String, IndexInfo> indexInfos, boolean reindexing, int genericIndexingFailures, int entityIndexingFailures) -
Method Summary
Modifier and TypeMethodDescriptionintintList<org.infinispan.query.core.stats.impl.IndexEntry> merge(IndexStatisticsSnapshot other) Merge with anotherIndexStatisticsSnapshot.booleantoJson()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IndexStatisticsSnapshot
computeIndexInfos, computeSnapshot, indexedEntities
-
Constructor Details
-
IndexStatisticsSnapshotImpl
public IndexStatisticsSnapshotImpl() -
IndexStatisticsSnapshotImpl
@ProtoFactory public IndexStatisticsSnapshotImpl(List<org.infinispan.query.core.stats.impl.IndexEntry> entries, boolean reindexing, int genericIndexingFailures, int entityIndexingFailures) -
IndexStatisticsSnapshotImpl
-
-
Method Details
-
indexInfos
- Specified by:
indexInfosin interfaceIndexStatisticsSnapshot- Returns:
- The
IndexInfofor each indexed entity configured in the cache. The name of the entity is either the class name annotated with @Index, or the protobuf Message name.
-
getEntries
-
reindexing
@ProtoField(number=2, defaultValue="false") public boolean reindexing()- Specified by:
reindexingin interfaceIndexStatistics
-
genericIndexingFailures
@ProtoField(number=3, defaultValue="0") public int genericIndexingFailures()- Specified by:
genericIndexingFailuresin interfaceIndexStatistics
-
entityIndexingFailures
@ProtoField(number=4, defaultValue="0") public int entityIndexingFailures()- Specified by:
entityIndexingFailuresin interfaceIndexStatistics
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
merge
Description copied from interface:IndexStatisticsSnapshotMerge with anotherIndexStatisticsSnapshot.- Specified by:
mergein interfaceIndexStatisticsSnapshot- Returns:
- self
-