Interface DatabaseManagement
- All Superinterfaces:
ConfigurationAware,StatisticsAware
- All Known Implementing Classes:
DatabaseManagementImpl
-
Method Summary
Modifier and TypeMethodDescriptionGets time at which database statistics were last reset on the primary host.booleanReset all statistics counters on all hosts in the cluster to zero.Methods inherited from interface io.github.mfvanek.pg.settings.ConfigurationAware
getParamsCurrentValues, getParamsWithDefaultValues
-
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:
resetStatisticsin interfaceStatisticsAware- Returns:
- true if the operation is successful
- See Also:
-
getLastStatsResetTimestamp
Gets time at which database statistics were last reset on the primary host.- Specified by:
getLastStatsResetTimestampin interfaceStatisticsAware- Returns:
Optionalof null or time at which database statistics were last reset.
-