public class IgniteStatisticsRepository extends Object
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectStatisticsImpl |
aggregatedLocalStatistics(Collection<ObjectPartitionStatisticsImpl> stats,
StatisticsObjectConfiguration cfg)
Scan local partitioned statistic and aggregate local statistic for specified statistic object.
|
void |
clearLocalPartitionsStatistics(StatisticsKey key,
Set<Integer> partsToRemove)
Clear specified partition ids statistics.
|
Collection<ObjectPartitionStatisticsImpl> |
getLocalPartitionsStatistics(StatisticsKey key)
Get local partition statistics by specified object.
|
ObjectPartitionStatisticsImpl |
getLocalPartitionStatistics(StatisticsKey key,
int partId)
Get partition statistics.
|
ObjectStatisticsImpl |
getLocalStatistics(StatisticsKey key)
Get local statistics.
|
IntMap<ObjectPartitionStatisticsObsolescence> |
getObsolescence(StatisticsKey key)
Get map partitionId to partition obsolescence by key.
|
ObjectPartitionStatisticsObsolescence |
getObsolescence(StatisticsKey key,
int partId)
Get partition obsolescence info.
|
List<StatisticsKey> |
getObsolescenceKeys()
Get list of all obsolescence keys.
|
Map<StatisticsKey,ObjectStatisticsImpl> |
localStatisticsMap()
Get all local statistics.
|
void |
refreshObsolescence(StatisticsKey key,
int partId)
Refresh statistics obsolescence and save clear object to store, after partition gathering.
|
void |
replaceLocalPartitionStatistics(StatisticsKey key,
ObjectPartitionStatisticsImpl statistics)
Save specified local partition statistics.
|
void |
saveLocalStatistics(StatisticsKey key,
ObjectStatisticsImpl statistics)
Save local object statistics.
|
void |
saveObsolescenceInfo(StatisticsKey key)
Save obsolescence info by specified key.
|
void |
start()
Start repository.
|
IgniteStatisticsStore |
statisticsStore() |
void |
stop()
Stop repository.
|
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)
key - Object key.statistics - Statistics to save.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)
key - Object key to load statistics by.null if there are no statistics collected for such object.public Map<StatisticsKey,ObjectStatisticsImpl> localStatisticsMap()
public IgniteStatisticsStore statisticsStore()
public ObjectStatisticsImpl aggregatedLocalStatistics(Collection<ObjectPartitionStatisticsImpl> stats, StatisticsObjectConfiguration cfg)
stats - Partitions statistics to aggregate.cfg - Statistic configuration to specify statistic object to aggregate.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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025