public class IgniteStatisticsConfigurationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_STRINGS
Empty strings array.
|
| Constructor and Description |
|---|
IgniteStatisticsConfigurationManager(SchemaManager schemaMgr,
GridInternalSubscriptionProcessor subscriptionProcessor,
GridSystemViewManager sysViewMgr,
GridClusterStateProcessor cluster,
StatisticsProcessor statProc,
boolean persistence,
IgniteThreadPoolExecutor mgmtPool,
Function<Class<?>,IgniteLogger> logSupplier,
boolean isServerNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterTopologyUnlock(GridDhtPartitionsExchangeFuture fut)
Update statistics after topology change, if necessary.
|
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.
|
IgniteInternalFuture<Boolean> |
dropStatisticsAsync(List<StatisticsTarget> targets,
boolean validate)
Drop local statistic for specified database objects on the cluster.
|
Collection<StatisticsObjectConfiguration> |
getAllConfig()
Get statistics configurations for all objects.
|
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 |
updateAllLocalStatistics()
Scan statistics configuration and update each key it contains.
|
void |
updateStatistics(StatisticsObjectConfiguration... targets)
Update local statistic for specified database objects on the cluster.
|
public static final String[] EMPTY_STRINGS
public IgniteStatisticsConfigurationManager(SchemaManager schemaMgr, GridInternalSubscriptionProcessor subscriptionProcessor, GridSystemViewManager sysViewMgr, GridClusterStateProcessor cluster, StatisticsProcessor statProc, boolean persistence, IgniteThreadPoolExecutor mgmtPool, Function<Class<?>,IgniteLogger> logSupplier, boolean isServerNode)
schemaMgr - Schema manager.subscriptionProcessor - Subscription processor.sysViewMgr - System view manager.cluster - Cluster state processor.statProc - Staitistics processor.persistence - Persistence enabled flag.mgmtPool - Statistics management poollogSupplier - Log supplier.isServerNode - Server node flag.public void afterTopologyUnlock(GridDhtPartitionsExchangeFuture fut)
fut - Topology change future.public Collection<StatisticsObjectConfiguration> getAllConfig() throws IgniteCheckedException
IgniteCheckedException - In case of error.public void start()
public void updateAllLocalStatistics()
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 IgniteInternalFuture<Boolean> dropStatisticsAsync(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 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025