Class IgniteStatisticsConfigurationManager


  • public class IgniteStatisticsConfigurationManager
    extends Object
    Holds statistic configuration objects at the distributed metastore and match local statistics with target statistic configuration.
    • Field Detail

      • EMPTY_STRINGS

        public static final String[] EMPTY_STRINGS
        Empty strings array.
    • Method Detail

      • afterTopologyUnlock

        public void afterTopologyUnlock​(GridDhtPartitionsExchangeFuture fut)
        Update statistics after topology change, if necessary.
        Parameters:
        fut - Topology change future.
      • start

        public void start()
        Start tracking configuration changes and do initial loading.
      • updateAllLocalStatistics

        public void updateAllLocalStatistics()
        Scan statistics configuration and update each key it contains.
      • stop

        public void stop()
        Stop tracking configuration changes.
      • updateStatistics

        public void updateStatistics​(StatisticsObjectConfiguration... targets)
        Update local statistic for specified database objects on the cluster. Each node will scan local primary partitions to collect and update local statistic.
        Parameters:
        targets - DB objects to statistics update.
      • dropStatistics

        public void dropStatistics​(List<StatisticsTarget> targets,
                                   boolean validate)
        Drop local statistic for specified database objects on the cluster. Remove local aggregated and partitioned statistics that are stored at the local metastorage.
        Parameters:
        targets - DB objects to update statistics by.
        validate - if true - validate statistics existence, otherwise - just try to remove.
      • dropStatisticsAsync

        public IgniteInternalFuture<Boolean> dropStatisticsAsync​(List<StatisticsTarget> targets,
                                                                 boolean validate)
        Drop local statistic for specified database objects on the cluster. Remove local aggregated and partitioned statistics that are stored at the local metastorage.
        Parameters:
        targets - DB objects to update statistics by.
        validate - if true - validate statistics existence, otherwise - just try to remove.
      • dropAll

        public void dropAll()
        Drop all local statistics on the cluster.
      • refreshStatistics

        public void refreshStatistics​(List<StatisticsTarget> targets)
        Refresh local statistic for specified database objects on the cluster.
        Parameters:
        targets - DB objects to statistics update.