Package com.sleepycat.db
Class TransactionStats
java.lang.Object
com.sleepycat.db.TransactionStats
Transaction statistics for a database environment.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintThe initial number of transactions configured.The LSN of the last checkpoint.intThe last transaction ID allocated.intThe maximum number of active transactions at any one time.intThe maximum number of transactions on the snapshot list at any one time.intThe maximum number of active transactions configured.longThe number of transactions that have aborted.intThe number of transactions that are currently active.longThe number of transactions that have begun.longThe number of transactions that have committed.intThe number of transactions that have been restored.intThe number of transactions on the snapshot list.longThe number of times that a thread of control was able to obtain the region lock without waiting.longThe number of times that a thread of control was forced to wait before obtaining the region lock.longThe size of the region.longThe time the last completed checkpoint finished (as the number of seconds since the Epoch, returned by the IEEE/ANSI Std 1003.1 (POSIX) time interface).An array ofActiveobjects, describing the currently active transactions.toString()
-
Method Details
-
getNumRestores
public int getNumRestores()The number of transactions that have been restored. -
getLastCkp
The LSN of the last checkpoint. -
getTimeCkp
public long getTimeCkp()The time the last completed checkpoint finished (as the number of seconds since the Epoch, returned by the IEEE/ANSI Std 1003.1 (POSIX) time interface). -
getLastTxnId
public int getLastTxnId()The last transaction ID allocated. -
getInittxns
public int getInittxns()The initial number of transactions configured. -
getMaxTxns
public int getMaxTxns()The maximum number of active transactions configured. -
getNaborts
public long getNaborts()The number of transactions that have aborted. -
getNumBegins
public long getNumBegins()The number of transactions that have begun. -
getNumCommits
public long getNumCommits()The number of transactions that have committed. -
getNactive
public int getNactive()The number of transactions that are currently active. -
getNumSnapshot
public int getNumSnapshot()The number of transactions on the snapshot list. These are transactions which modified a database opened withDatabaseConfig.setMultiversion(boolean), and which have committed or aborted, but the copies of pages they created are still in the cache. -
getMaxNactive
public int getMaxNactive()The maximum number of active transactions at any one time. -
getMaxNsnapshot
public int getMaxNsnapshot()The maximum number of transactions on the snapshot list at any one time. -
getRegionWait
public long getRegionWait()The number of times that a thread of control was forced to wait before obtaining the region lock. -
getRegionNowait
public long getRegionNowait()The number of times that a thread of control was able to obtain the region lock without waiting. -
getRegSize
public long getRegSize()The size of the region. -
getTxnarray
An array ofActiveobjects, describing the currently active transactions. -
toString
-