public class StatisticsGatherer extends Object
| Constructor and Description |
|---|
StatisticsGatherer(IgniteStatisticsRepository repo,
IgniteThreadPoolExecutor gatherPool,
Function<Class<?>,IgniteLogger> logSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LocalStatisticsGatheringContext |
aggregateStatisticsAsync(StatisticsKey key,
Supplier<ObjectStatisticsImpl> aggregate)
Schedule supplied statistics aggregation and return task context.
|
void |
cancelAllTasks()
Cancel all currently running statistics gathering tasks.
|
LocalStatisticsGatheringContext |
gatheringInProgress(StatisticsKey key)
Get gathering context by key.
|
LocalStatisticsGatheringContext |
gatherLocalObjectsStatisticsAsync(GridH2Table tbl,
StatisticsObjectConfiguration cfg,
Map<String,StatisticsColumnConfiguration> colCfgs,
Set<Integer> parts)
Collect statistic per partition for specified object.
|
void |
start()
Start gathering.
|
void |
stop()
Stop gathering.
|
public StatisticsGatherer(IgniteStatisticsRepository repo, IgniteThreadPoolExecutor gatherPool, Function<Class<?>,IgniteLogger> logSupplier)
repo - IgniteStatisticsRepository.gatherPool - Thread pool to gather statistics in.logSupplier - Log supplier function.public LocalStatisticsGatheringContext aggregateStatisticsAsync(StatisticsKey key, Supplier<ObjectStatisticsImpl> aggregate)
key - Statistics key to aggregate statistics by.aggregate - Statistics to aggregate supplier.public LocalStatisticsGatheringContext gatherLocalObjectsStatisticsAsync(GridH2Table tbl, StatisticsObjectConfiguration cfg, Map<String,StatisticsColumnConfiguration> colCfgs, Set<Integer> parts)
tbl - Table to gather statistics by.cfg - Statistics configuration.colCfgs - Column to gathering configuration.parts - Partitions to gather.public LocalStatisticsGatheringContext gatheringInProgress(StatisticsKey key)
key - Statistics key.null if there are no active gathering by specified key.public void start()
public void stop()
public void cancelAllTasks()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.8.9 Release Date : September 29 2021