Interface CommitStatsMXBean
-
@MXBean public interface CommitStatsMXBean
MXBean interface for retrieving write Tx commit statistics.- Author:
- Thomas Pantelis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearStats()Clears the current stats to their defaults.StringgetAverageCommitTime()Returns a string representing average commit time duration, in the appropriate scaled units.StringgetLongestCommitTime()Returns a string representing the time duration of the longest commit, in the appropriate scaled units, along with the date/time that it occurred.StringgetShortestCommitTime()Returns a string representing the time duration of the shortest commit, in the appropriate scaled units, along with the date/time that it occurred.longgetTotalCommits()Returns the total number of commits that have occurred.
-
-
-
Method Detail
-
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.
-
-