Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

TransactionStats.java

00001 /*-
00002  * DO NOT EDIT: automatically built by dist/s_java_stat.
00003  *
00004  * See the file LICENSE for redistribution information.
00005  *
00006  * Copyright (c) 2002-2005
00007  *      Sleepycat Software.  All rights reserved.
00008  */
00009 
00010 package com.sleepycat.db;
00011 
00012 import com.sleepycat.db.internal.DbUtil;
00013 
00014 public class TransactionStats
00015 {
00016     // no public constructor
00017     protected TransactionStats() {}
00018 
00019     public static class Active {        // no public constructor
00020         protected Active() {}
00021 
00022         private int txnid;
00023         public int getTxnId() {
00024             return txnid;
00025         }
00026 
00027         private int parentid;
00028         public int getParentId() {
00029             return parentid;
00030         }
00031 
00032         private int pid;
00033         public int getPid() {
00034             return pid;
00035         }
00036 
00037         private LogSequenceNumber lsn;
00038         public LogSequenceNumber getLsn() {
00039             return lsn;
00040         }
00041 
00042         private int xa_status;
00043         public int getXaStatus() {
00044             return xa_status;
00045         }
00046 
00047         private byte[] xid;
00048         public byte[] getXId() {
00049             return xid;
00050         }
00051 
00052         private String name;
00053         public String getName() {
00054             return name;
00055         }
00056 
00057         public String toString() {
00058             return "Active:"
00059                 + "\n      txnid=" + txnid
00060                 + "\n      parentid=" + parentid
00061                 + "\n      pid=" + pid
00062                 + "\n      lsn=" + lsn
00063                 + "\n      xa_status=" + xa_status
00064                 + "\n      xid=" + DbUtil.byteArrayToString(xid)
00065                 + "\n      name=" + name
00066                 ;
00067         }
00068     };
00069 
00070     private LogSequenceNumber st_last_ckp;
00071     public LogSequenceNumber getLastCkp() {
00072         return st_last_ckp;
00073     }
00074 
00075     private long st_time_ckp;
00076     public long getTimeCkp() {
00077         return st_time_ckp;
00078     }
00079 
00080     private int st_last_txnid;
00081     public int getLastTxnId() {
00082         return st_last_txnid;
00083     }
00084 
00085     private int st_maxtxns;
00086     public int getMaxTxns() {
00087         return st_maxtxns;
00088     }
00089 
00090     private int st_naborts;
00091     public int getNaborts() {
00092         return st_naborts;
00093     }
00094 
00095     private int st_nbegins;
00096     public int getNumBegins() {
00097         return st_nbegins;
00098     }
00099 
00100     private int st_ncommits;
00101     public int getNumCommits() {
00102         return st_ncommits;
00103     }
00104 
00105     private int st_nactive;
00106     public int getNactive() {
00107         return st_nactive;
00108     }
00109 
00110     private int st_nrestores;
00111     public int getNumRestores() {
00112         return st_nrestores;
00113     }
00114 
00115     private int st_maxnactive;
00116     public int getMaxNactive() {
00117         return st_maxnactive;
00118     }
00119 
00120     private Active[] st_txnarray;
00121     public Active[] getTxnarray() {
00122         return st_txnarray;
00123     }
00124 
00125     private int st_region_wait;
00126     public int getRegionWait() {
00127         return st_region_wait;
00128     }
00129 
00130     private int st_region_nowait;
00131     public int getRegionNowait() {
00132         return st_region_nowait;
00133     }
00134 
00135     private int st_regsize;
00136     public int getRegSize() {
00137         return st_regsize;
00138     }
00139 
00140     public String toString() {
00141         return "TransactionStats:"
00142             + "\n  st_last_ckp=" + st_last_ckp
00143             + "\n  st_time_ckp=" + st_time_ckp
00144             + "\n  st_last_txnid=" + st_last_txnid
00145             + "\n  st_maxtxns=" + st_maxtxns
00146             + "\n  st_naborts=" + st_naborts
00147             + "\n  st_nbegins=" + st_nbegins
00148             + "\n  st_ncommits=" + st_ncommits
00149             + "\n  st_nactive=" + st_nactive
00150             + "\n  st_nrestores=" + st_nrestores
00151             + "\n  st_maxnactive=" + st_maxnactive
00152             + "\n  st_txnarray=" + DbUtil.objectArrayToString(st_txnarray, "st_txnarray")
00153             + "\n  st_region_wait=" + st_region_wait
00154             + "\n  st_region_nowait=" + st_region_nowait
00155             + "\n  st_regsize=" + st_regsize
00156             ;
00157     }
00158 }
00159 // end of TransactionStats.java

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2