Interface DatabaseManagement

All Superinterfaces:
ConfigurationAware, StatisticsAware
All Known Implementing Classes:
DatabaseManagementImpl

public interface DatabaseManagement extends StatisticsAware, ConfigurationAware
  • Method Details

    • resetStatistics

      boolean resetStatistics()
      Reset all statistics counters on all hosts in the cluster to zero.

      It is safe running this method on your database. It just reset counters without any impact on performance.

      Specified by:
      resetStatistics in interface StatisticsAware
      Returns:
      true if the operation is successful
      See Also:
    • getLastStatsResetTimestamp

      @Nonnull Optional<OffsetDateTime> getLastStatsResetTimestamp()
      Gets time at which database statistics were last reset on the primary host.
      Specified by:
      getLastStatsResetTimestamp in interface StatisticsAware
      Returns:
      Optional of null or time at which database statistics were last reset.