java.lang.Object
org.tentackle.log.StatisticsResult
org.tentackle.dbms.TransactionStatisticsResult
Statistics result for transactions.
Extends
Extends
StatisticsResult
by number of statements.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Counts a rollback.void
countStatements
(int statements) Counts the statements statistics.long
Gets the maximum number of statements.long
Gets the minimum number of statements.long
Gets the number of rollbacks.
StatisticsResult.getCount()
-getRollbackCount()
gives the number of commits.long
Gets the total number of statements.toString()
Methods inherited from class org.tentackle.log.StatisticsResult
count, count, getCount, getMaxDuration, getMinDuration, getTotalDuration, isValid
-
Constructor Details
-
TransactionStatisticsResult
public TransactionStatisticsResult()Creates a statement statistics result.
-
-
Method Details
-
countRollback
public void countRollback()Counts a rollback. -
getRollbackCount
public long getRollbackCount()Gets the number of rollbacks.
StatisticsResult.getCount()
-getRollbackCount()
gives the number of commits.- Returns:
- the number of rollbacks
-
countStatements
public void countStatements(int statements) Counts the statements statistics.- Parameters:
statements
- the number of statements executed
-
getMinStatements
public long getMinStatements()Gets the minimum number of statements.- Returns:
- the statement count,
Integer.MAX_VALUE
if no statements involved
-
getMaxStatements
public long getMaxStatements()Gets the maximum number of statements.- Returns:
- the statement count,
Integer.MIN_VALUE
if no statements involved
-
getTotalStatements
public long getTotalStatements()Gets the total number of statements.- Returns:
- the total number of statements
-
toString
- Overrides:
toString
in classStatisticsResult
-