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.boolean
Reset 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:
resetStatistics
in 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:
getLastStatsResetTimestamp
in interfaceStatisticsAware
- Returns:
Optional
of null or time at which database statistics were last reset.
-