Package io.github.mfvanek.pg.statistics
Interface StatisticsAware
- All Known Subinterfaces:
DatabaseManagement
,StatisticsMaintenanceOnHost
- All Known Implementing Classes:
DatabaseManagementImpl
,StatisticsMaintenanceOnHostImpl
public interface StatisticsAware
A set of methods to manage statistics.
-
Method Summary
Modifier and TypeMethodDescriptionGets time at which database statistics were last reset.boolean
Resets all statistics counters for the current database to zero.
-
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
Gets time at which database statistics were last reset.- Returns:
Optional
of null or time at which database statistics were last reset.
-