Interface StatisticsMaintenanceOnHost
- All Superinterfaces:
HostAware
,StatisticsAware
- All Known Implementing Classes:
StatisticsMaintenanceOnHostImpl
An entry point for managing statistics on the specified host.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets time at which database statistics were last reset on current host.boolean
Resets all statistics counters for the current database on current host to zero.
-
Method Details
-
resetStatistics
boolean resetStatistics()Resets all statistics counters for the current database on current host to zero.Note: superuser privileges are required.
- 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 current host.- Specified by:
getLastStatsResetTimestamp
in interfaceStatisticsAware
- Returns:
Optional
of null or time at which database statistics were last reset.
-