Package fr.dyade.aaa.util
Interface DBTransactionMBean
-
- All Superinterfaces:
TransactionMBean
- All Known Subinterfaces:
JDBCTransactionMBean
- All Known Implementing Classes:
DBTransaction,DerbyDBTransaction,JDBCTransaction
public interface DBTransactionMBean extends TransactionMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdumpProperties()Returns the configuration properties of the component.longgetAverageCommitTime()intgetBadInserts()Returns the number of bad inserts in database since last boot (record already existing).intgetBadUpdates()Returns the number of bad updates in database since last boot (record needing to be inserted).longgetCommitBytes()Returns the number of bytes written to database since last boot.StringgetDBCloseStatement()StringgetDBDeleteStatement()StringgetDBInsertStatement()StringgetDBLoadStatement()StringgetDBTableName()StringgetDBUpdateStatement()intgetLogThresholdOperation()Returns the pool size foroperationobjects, by default 1000.intgetNbDeletes()Returns the number of deletes in database since last boot.intgetNbInserts()Returns the number of inserts in database since last boot.intgetNbUpdates()Returns the number of updates in database since last boot.intgetPhase()Returns the transaction state.StringgetPhaseInfo()Returns a string representation of the transaction state.-
Methods inherited from interface fr.dyade.aaa.util.TransactionMBean
backup, dumpObjectList, getCommitCount, getObject, getObjectList, getStartTime, isPersistent, useLoadAll
-
-
-
-
Method Detail
-
getLogThresholdOperation
int getLogThresholdOperation()
Returns the pool size foroperationobjects, by default 1000.- Returns:
- The pool size for
operationobjects.
-
getPhase
int getPhase()
Description copied from interface:TransactionMBeanReturns the transaction state.- Specified by:
getPhasein interfaceTransactionMBean- Returns:
- the transaction state.
-
getPhaseInfo
String getPhaseInfo()
Description copied from interface:TransactionMBeanReturns a string representation of the transaction state.- Specified by:
getPhaseInfoin interfaceTransactionMBean- Returns:
- the string representation of the transaction state.
-
getDBTableName
String getDBTableName()
-
getDBInsertStatement
String getDBInsertStatement()
-
getDBUpdateStatement
String getDBUpdateStatement()
-
getDBLoadStatement
String getDBLoadStatement()
-
getDBDeleteStatement
String getDBDeleteStatement()
-
getDBCloseStatement
String getDBCloseStatement()
-
getAverageCommitTime
long getAverageCommitTime()
-
getCommitBytes
long getCommitBytes()
Returns the number of bytes written to database since last boot.- Returns:
- The number of commit operation.
-
getNbInserts
int getNbInserts()
Returns the number of inserts in database since last boot.- Returns:
- The number of inserts in database.
-
getBadInserts
int getBadInserts()
Returns the number of bad inserts in database since last boot (record already existing).- Returns:
- The number of bad insert in database.
-
getNbUpdates
int getNbUpdates()
Returns the number of updates in database since last boot.- Returns:
- The number of updates in database.
-
getBadUpdates
int getBadUpdates()
Returns the number of bad updates in database since last boot (record needing to be inserted).- Returns:
- The number of bad updates in database.
-
getNbDeletes
int getNbDeletes()
Returns the number of deletes in database since last boot.- Returns:
- The number of deletes in database.
-
dumpProperties
String dumpProperties()
Returns the configuration properties of the component.- Returns:
- the configuration properties of the component.
-
-