Interface CommitStatsMXBean
-
- All Known Implementing Classes:
CommitStatsMXBeanImpl
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 void
clearStats()
Clears the current stats to their defaults.String
getAverageCommitTime()
Returns a string representing average commit time duration, in the appropriate scaled units.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.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.long
getTotalCommits()
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.
-
-