public class IgniteStatisticsConfigurationManager extends Object implements IgniteChangeGlobalStateSupport
| Constructor and Description |
|---|
IgniteStatisticsConfigurationManager(SchemaManager schemaMgr,
GridInternalSubscriptionProcessor subscriptionProcessor,
GridSystemViewManager sysViewMgr,
GridClusterStateProcessor cluster,
GridCachePartitionExchangeManager exchange,
IgniteStatisticsRepository repo,
StatisticsGatherer gatherer,
IgniteThreadPoolExecutor mgmtPool,
Function<Class<?>,IgniteLogger> logSupplier) |
| Modifier and Type | Method and Description |
|---|---|
StatisticsObjectConfiguration |
config(StatisticsKey key)
Read statistics object configuration by key.
|
void |
dropAll()
Drop all local statistics on the cluster.
|
void |
dropStatistics(List<StatisticsTarget> targets,
boolean validate)
Drop local statistic for specified database objects on the cluster.
|
void |
gatherLocalStatistics(StatisticsObjectConfiguration cfg,
GridH2Table tbl,
Set<Integer> partsToAggregate,
Set<Integer> partsToCollect,
Map<String,StatisticsColumnConfiguration> colsToCollect)
Gather local statistics for specified object and partitions.
|
Collection<StatisticsObjectConfiguration> |
getAllConfig()
Get statistics configurations for all objects.
|
void |
onActivate(GridKernalContext kctx) |
void |
onDeActivate(GridKernalContext kctx) |
void |
refreshStatistics(List<StatisticsTarget> targets)
Refresh local statistic for specified database objects on the cluster.
|
void |
start()
Start tracking configuration changes and do initial loading.
|
void |
stop()
Stop tracking configuration changes.
|
void |
updateStatistics(StatisticsObjectConfiguration... targets)
Update local statistic for specified database objects on the cluster.
|
public IgniteStatisticsConfigurationManager(SchemaManager schemaMgr, GridInternalSubscriptionProcessor subscriptionProcessor, GridSystemViewManager sysViewMgr, GridClusterStateProcessor cluster, GridCachePartitionExchangeManager exchange, IgniteStatisticsRepository repo, StatisticsGatherer gatherer, IgniteThreadPoolExecutor mgmtPool, Function<Class<?>,IgniteLogger> logSupplier)
public Collection<StatisticsObjectConfiguration> getAllConfig() throws IgniteCheckedException
IgniteCheckedException - In case of error.public void start()
public void stop()
public void updateStatistics(StatisticsObjectConfiguration... targets)
targets - DB objects to statistics update.public void dropStatistics(List<StatisticsTarget> targets, boolean validate)
targets - DB objects to update statistics by.validate - if true - validate statistics existence, otherwise - just try to remove.public void dropAll()
public void refreshStatistics(List<StatisticsTarget> targets)
targets - DB objects to statistics update.public void gatherLocalStatistics(StatisticsObjectConfiguration cfg, GridH2Table tbl, Set<Integer> partsToAggregate, Set<Integer> partsToCollect, Map<String,StatisticsColumnConfiguration> colsToCollect)
cfg - Statistics object configuration.tbl - Table.partsToAggregate - Set of partition ids to aggregate.partsToCollect - Set of partition ids to gather statistics from.colsToCollect - If specified - collect statistics only for this columns,
otherwise - collect to all columns from object configuration.public StatisticsObjectConfiguration config(StatisticsKey key) throws IgniteCheckedException
key - Statistics key to read configuration by.null if there are no such configuration.IgniteCheckedException - In case of errors.public void onActivate(GridKernalContext kctx) throws IgniteCheckedException
onActivate in interface IgniteChangeGlobalStateSupportIgniteCheckedExceptionpublic void onDeActivate(GridKernalContext kctx)
onDeActivate in interface IgniteChangeGlobalStateSupport
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.8.9 Release Date : September 29 2021