public class StatisticsProcessor extends Object
| Constructor and Description |
|---|
StatisticsProcessor(IgniteStatisticsRepository repo,
IgniteThreadPoolExecutor gatherPool,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Start gathering.
|
void |
stop()
Stop gathering.
|
void |
updateLocalStatistics(LocalStatisticsGatheringContext ctx)
Update statistics for the given key to actual state.
|
public StatisticsProcessor(IgniteStatisticsRepository repo, IgniteThreadPoolExecutor gatherPool, Function<Class<?>,IgniteLogger> logSupplier)
repo - IgniteStatisticsRepository.gatherPool - Thread pool to gather statistics in.logSupplier - Log supplier function.public void updateLocalStatistics(LocalStatisticsGatheringContext ctx)
null - does not clear any other partitions.
1) Replace previous gathering context if exist and needed (replace byObsolescence gathering with new one or
replace gathering with older configuration or topology version with new one).
2) If byObsolescence and no table awailable - clean obsolescence and partition statistics for the given key.
3) Submit tasks for each specified partition.
4) after last task finish gathering - it starts aggregation.
5) read all partitions & obsolescence from repo and
if byObsolescence = true - remove unnecessary one and aggregate by specified list
if byObsolescence = false - aggregate all presented in store (because it should contains only actual ones)
5) save aggregated local statisticsctx - Statistics Gathering context.public void start()
public void stop()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025