,I)Berkeley DB: DbTxnMgr.stat[P

DbTxnMgr.stat





import com.sleepycat.db.*;

public DbTxnStat stat() throws DbException;





Description

FThe stat method creates a DbTxnStat object encapsulating a statistical structure.

CThe transaction region statistics are stored in a DbTxnStat object.BThe following data fields are available from the DbTxnStat object:

G

public int st_refcnt;
The number of references to the region.5
public int st_regsize;
The size of the region.n
public DbLsn st_last_ckp;
The LSN of the last checkpoint.Ž
public DbLsn st_pending_ckp;
The LSN of any checkpoint that is currently in progress. If=st_pending_ckp is the same as st_last_ckp thereis no checkpoint in progress._
public long st_time_ckp;
The time the last completed checkpoint finished (as returned bytime(2)).C
public int st_last_txnid;
The last transaction ID allocated.`
public int st_maxtxns;
The maximum number of active transactions supported by the region.K
public int st_naborts;
The number of transactions that have aborted.S
public int st_nactive;
The number of transactions that are currently active.I
public int st_nbegins;
The number of transactions that have begun.N
public int st_ncommits;
The number of transactions that have committed.h
public int st_region_wait;
The number of times that a thread of control was forced to wait beforeobtaining the region lock.c
public int st_region_nowait;
The number of times that a thread of control was able to obtain the region lock without waiting.m
public Active st_txnarray[];
The array of active transactions. Each element of the array is an objectIof type DbTxnStat.Active, a top level inner class, that has the followingfields:
/

public int txnid;
The Transaction ID.5
public DbLsn lsn;
The Lsn of the begin record.



The DbTxnMgr.statHmethod throws an exception that encapsulates an errno on failure.



Errors

UIf a fatal error occurs in Berkeley DB, the DbTxnMgr.stat method may fail and throw a}DbRunRecoveryException, at which point all subsequent database%calls will also fail in the same way.

The DbTxnMgr.stat&method may fail and throw an exceptionKfor any of the errors specified for the following Berkeley DB and C library functions: abort(3), fcntl(3), fprintf(3), getpid(3), malloc(3),and memset(3).



Class

9DbTxnMgr



See Also

@DbTxnMgr.begin,JDbTxnMgr.checkpoint,@DbTxnMgr.close,>DbTxnMgr.open, DbTxnMgr.statandBDbTxnMgr.unlink.
ÿÿ