Interface StatisticsAware

All Known Subinterfaces:
DatabaseManagement, StatisticsMaintenanceOnHost
All Known Implementing Classes:
DatabaseManagementImpl, StatisticsMaintenanceOnHostImpl

public interface StatisticsAware
A set of methods to manage statistics.
  • Method Details

    • resetStatistics

      boolean resetStatistics()
      Resets all statistics counters for the current database to zero.

      Note: superuser privileges are required.

      Returns:
      true if the operation is successful
      See Also:
    • getLastStatsResetTimestamp

      @Nonnull Optional<OffsetDateTime> getLastStatsResetTimestamp()
      Gets time at which database statistics were last reset.
      Returns:
      Optional of null or time at which database statistics were last reset.