public class IgniteStatisticsRepository extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IgniteStatisticsRepository.VersionedStatistics
Object statistics with topology version to which it is actual for.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
STAT_LOCAL_DATA_VIEW
Statistics local data view name.
|
static String |
STAT_LOCAL_DATA_VIEW_DESC
Statistics local data view description.
|
static String |
STAT_PART_DATA_VIEW
Statistics partition data view name.
|
static String |
STAT_PART_DATA_VIEW_DESC
Statistics partition data view description.
|
| Constructor and Description |
|---|
IgniteStatisticsRepository(IgniteStatisticsStore store,
GridSystemViewManager sysViewMgr,
IgniteStatisticsHelper helper,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
public static final String STAT_PART_DATA_VIEW
public static final String STAT_PART_DATA_VIEW_DESC
public static final String STAT_LOCAL_DATA_VIEW
public static final String STAT_LOCAL_DATA_VIEW_DESC
public IgniteStatisticsRepository(IgniteStatisticsStore store, GridSystemViewManager sysViewMgr, IgniteStatisticsHelper helper, Function<Class<?>,IgniteLogger> logSupplier)
store - Ignite statistics store to use.sysViewMgr - Grid system view manager.helper - IgniteStatisticsHelper.logSupplier - Ignite logger supplier to get logger from.public Collection<ObjectPartitionStatisticsImpl> getLocalPartitionsStatistics(StatisticsKey key)
key - Object to get statistics by.public ObjectPartitionStatisticsObsolescence getObsolescence(StatisticsKey key, int partId)
key - Statistics key.partId - Parititon id.null if it doesn't exist.public void refreshObsolescence(StatisticsKey key, int partId)
key - Statistics key.partId - Partition id.public void replaceLocalPartitionStatistics(StatisticsKey key, ObjectPartitionStatisticsImpl statistics)
key - Object key.statistics - Statistics to save.public ObjectPartitionStatisticsImpl getLocalPartitionStatistics(StatisticsKey key, int partId)
key - Object key.partId - Partition id.null if there are no statistics collected for such partition.public void saveLocalStatistics(StatisticsKey key, ObjectStatisticsImpl statistics, AffinityTopologyVersion topVer)
key - Object key.statistics - Statistics to save.topVer - Topology version.public void clearLocalPartitionsStatistics(StatisticsKey key, Set<Integer> partsToRemove)
key - Key to remove statistics by.partsToRemove - Set of parititon ids to remove.public ObjectStatisticsImpl getLocalStatistics(StatisticsKey key, AffinityTopologyVersion topVer)
key - Object key to load statistics by.topVer - Required topology version.null if there are no statistics collected for such object.public Map<StatisticsKey,IgniteStatisticsRepository.VersionedStatistics> localStatisticsMap()
public IgniteStatisticsStore statisticsStore()
public ObjectStatisticsImpl aggregatedLocalStatistics(Collection<ObjectPartitionStatisticsImpl> stats, StatisticsObjectConfiguration cfg, AffinityTopologyVersion topVer)
stats - Partitions statistics to aggregate.cfg - Statistic configuration to specify statistic object to aggregate.topVer - Topology version to which specified partition set actual for.public void stop()
public void start()
public List<StatisticsKey> getObsolescenceKeys()
public IntMap<ObjectPartitionStatisticsObsolescence> getObsolescence(StatisticsKey key)
key - Statistics key to get obsolescence info by.public void saveObsolescenceInfo(StatisticsKey key)
key - Key to save obsolescence info by.public void subscribeToLocalStatistics(Consumer<ObjectStatisticsEvent> subscriber)
subscriber - Local statitics subscriber.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023