public class IgniteStatisticsPersistenceStoreImpl extends Object implements IgniteStatisticsStore, MetastorageLifecycleListener
| Modifier and Type | Field and Description |
|---|---|
static Integer |
VERSION
Actual statistics version.
|
| Constructor and Description |
|---|
IgniteStatisticsPersistenceStoreImpl(GridInternalSubscriptionProcessor subscriptionProcessor,
IgniteCacheDatabaseSharedManager db,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
public static final Integer VERSION
public IgniteStatisticsPersistenceStoreImpl(GridInternalSubscriptionProcessor subscriptionProcessor, IgniteCacheDatabaseSharedManager db, Function<Class<?>,IgniteLogger> logSupplier)
subscriptionProcessor - Grid subscription processor to track metastorage availability.db - Database shared manager to lock db while reading/writing metastorage.logSupplier - Logger getting function.public void onReadyForRead(ReadOnlyMetastorage metastorage)
onReadyForRead in interface MetastorageLifecycleListenerpublic void onReadyForReadWrite(ReadWriteMetastorage metastorage) throws IgniteCheckedException
onReadyForReadWrite in interface MetastorageLifecycleListenerIgniteCheckedExceptionpublic void clearAllStatistics()
clearAllStatistics in interface IgniteStatisticsStorepublic Map<StatisticsKey,Collection<ObjectPartitionStatisticsImpl>> getAllLocalPartitionsStatistics(String schema)
getAllLocalPartitionsStatistics in interface IgniteStatisticsStoreschema - Schema name, if null - returl local partitions statistics for all schemas.public void replaceLocalPartitionsStatistics(StatisticsKey key, Collection<ObjectPartitionStatisticsImpl> statistics)
replaceLocalPartitionsStatistics in interface IgniteStatisticsStorekey - Statistics key to replace statistics by.statistics - Collection of partition level statistics.public Collection<ObjectPartitionStatisticsImpl> getLocalPartitionsStatistics(StatisticsKey key)
getLocalPartitionsStatistics in interface IgniteStatisticsStorekey - Key to get statistics by.public void clearLocalPartitionsStatistics(StatisticsKey key)
clearLocalPartitionsStatistics in interface IgniteStatisticsStorekey - Key to clear statistics by.public void saveLocalPartitionStatistics(StatisticsKey key, ObjectPartitionStatisticsImpl stat)
saveLocalPartitionStatistics in interface IgniteStatisticsStorekey - Object which partition statistics belongs to.stat - Statistics to save.public ObjectPartitionStatisticsImpl getLocalPartitionStatistics(StatisticsKey key, int partId)
getLocalPartitionStatistics in interface IgniteStatisticsStorekey - Key to get partition statistics by.partId - Partition id.null if there are no statistics collected for such partition.public void clearLocalPartitionStatistics(StatisticsKey key, int partId)
clearLocalPartitionStatistics in interface IgniteStatisticsStorekey - Object which statistics needs to be cleaned.partId - Partition id.public void clearLocalPartitionsStatistics(StatisticsKey key, Collection<Integer> partIds)
clearLocalPartitionsStatistics in interface IgniteStatisticsStorekey - Object which statistics need to be cleaned.partIds - Collection of partition ids.public void saveObsolescenceInfo(Map<StatisticsKey,IntMap<ObjectPartitionStatisticsObsolescence>> obsolescence)
saveObsolescenceInfo in interface IgniteStatisticsStoreobsolescence - Statistics key to partId to obsolescence info map to save.public void saveObsolescenceInfo(StatisticsKey key, int partId, ObjectPartitionStatisticsObsolescence partObs)
saveObsolescenceInfo in interface IgniteStatisticsStorekey - Statistics key which it is belongs to.partId - Partition id.partObs - Info to save.public void clearObsolescenceInfo(StatisticsKey key, Collection<Integer> partIds)
clearObsolescenceInfo in interface IgniteStatisticsStorekey - Statistics key to remove obsolescense info by.partIds - Partition ids, if null - remove all partitions info for specified key.public Map<StatisticsKey,IntMap<ObjectPartitionStatisticsObsolescence>> loadAllObsolescence()
loadAllObsolescence in interface IgniteStatisticsStorepublic Collection<Integer> loadLocalPartitionMap(StatisticsKey key)
loadLocalPartitionMap in interface IgniteStatisticsStorekey - Staistics key to load map by.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025