Interface StatisticsMaintenanceOnHost
-
- All Superinterfaces:
HostAware
,StatisticsAware
- All Known Implementing Classes:
StatisticsMaintenanceOnHostImpl
public interface StatisticsMaintenanceOnHost extends StatisticsAware, HostAware
An entry point for managing statistics on the specified host.- See Also:
HostAware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.time.OffsetDateTime>
getLastStatsResetTimestamp()
Gets time at which database statistics were last reset on current host.void
resetStatistics()
Resets all statistics counters for the current database on current host to zero.
-
-
-
Method Detail
-
resetStatistics
void resetStatistics()
Resets all statistics counters for the current database on current host to zero. For more information, see https://www.postgresql.org/docs/current/monitoring-stats.html- Specified by:
resetStatistics
in interfaceStatisticsAware
-
getLastStatsResetTimestamp
@Nonnull java.util.Optional<java.time.OffsetDateTime> 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.
-
-