Interface CommitStatsMXBean
MXBean interface for retrieving write Tx commit statistics.
- Author:
- Thomas Pantelis
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the current stats to their defaults.Returns a string representing average commit time duration, in the appropriate scaled units.Returns a string representing the time duration of the longest commit, in the appropriate scaled units, along with the date/time that it occurred.Returns a string representing the time duration of the shortest commit, in the appropriate scaled units, along with the date/time that it occurred.longReturns the total number of commits that have occurred.
-
Method Details
-
getTotalCommits
long getTotalCommits()Returns the total number of commits that have occurred.- Returns:
- Returns the total number of commits that have occurred
-
getLongestCommitTime
String getLongestCommitTime()Returns a string representing the time duration of the longest commit, in the appropriate scaled units, along with the date/time that it occurred.- Returns:
- string
-
getShortestCommitTime
String getShortestCommitTime()Returns a string representing the time duration of the shortest commit, in the appropriate scaled units, along with the date/time that it occurred.- Returns:
- string
-
getAverageCommitTime
String getAverageCommitTime()Returns a string representing average commit time duration, in the appropriate scaled units.- Returns:
- string
-
clearStats
void clearStats()Clears the current stats to their defaults.
-