java.lang.Object
org.tentackle.log.StatisticsResult
org.tentackle.dbms.TransactionStatisticsResult
Statistics result for transactions.
Extends
Extends
StatisticsResult by number of statements.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCounts a rollback.voidcountStatements(int statements) Counts the statements statistics.longGets the maximum number of statements.longGets the minimum number of statements.longGets the number of rollbacks.
StatisticsResult.getCount()-getRollbackCount()gives the number of commits.longGets 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_VALUEif no statements involved
-
getMaxStatements
public long getMaxStatements()Gets the maximum number of statements.- Returns:
- the statement count,
Integer.MIN_VALUEif no statements involved
-
getTotalStatements
public long getTotalStatements()Gets the total number of statements.- Returns:
- the total number of statements
-
toString
- Overrides:
toStringin classStatisticsResult
-