DbTxnStat.java
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 2k
Category:

MySQL

Development Platform:

Visual C++

  1. /*-
  2.  * See the file LICENSE for redistribution information.
  3.  *
  4.  * Copyright (c) 1997, 1998, 1999, 2000
  5.  * Sleepycat Software.  All rights reserved.
  6.  *
  7.  * $Id: DbTxnStat.java,v 11.3 2000/02/14 02:59:56 bostic Exp $
  8.  */
  9. package com.sleepycat.db;
  10. /*
  11.  * This is filled in and returned by the
  12.  * DbTxnMgr.fstat() method.
  13.  */
  14. public class DbTxnStat
  15. {
  16.     public static class Active {
  17.         public int txnid;               // Transaction ID
  18.         public int parentid;            // Transaction ID of parent
  19.         public DbLsn lsn;               // Lsn of the begin record
  20.     };
  21.     public DbLsn st_last_ckp;           // lsn of the last checkpoint
  22.     public DbLsn st_pending_ckp;        // last checkpoint did not finish
  23.     public long st_time_ckp;            // time of last checkpoint (UNIX secs)
  24.     public int st_last_txnid;           // last transaction id given out
  25.     public int st_maxtxns;              // maximum number of active txns
  26.     public int st_naborts;              // number of aborted transactions
  27.     public int st_nbegins;              // number of begun transactions
  28.     public int st_ncommits;             // number of committed transactions
  29.     public int st_nactive;              // number of active transactions
  30.     public int st_maxnactive;           // maximum active transactions
  31.     public Active st_txnarray[];        // array of active transactions
  32.     public int st_region_wait;          // Region lock granted after wait.
  33.     public int st_region_nowait;        // Region lock granted without wait.
  34.     public int st_regsize;              // Region size.
  35. }
  36. // end of DbTxnStat.java