• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/java/src/com/sleepycat/db/
1/*-
2 * Automatically built by dist/s_java_stat.
3 * Only the javadoc comments can be edited.
4 *
5 * See the file LICENSE for redistribution information.
6 *
7 * Copyright (c) 2002-2009 Oracle.  All rights reserved.
8 */
9
10package com.sleepycat.db;
11
12import com.sleepycat.db.internal.DbUtil;
13
14/**
15Transaction statistics for a database environment.
16*/
17public class TransactionStats {
18    // no public constructor
19    /* package */ TransactionStats() {}
20
21    public static class Active {
22        // no public constructor
23        /* package */ Active() {}
24
25        private int txnid;
26        /** TODO */
27    public int getTxnId() {
28            return txnid;
29        }
30
31        private int parentid;
32        /** TODO */
33    public int getParentId() {
34            return parentid;
35        }
36
37        private int pid;
38        /** TODO */
39    public int getPid() {
40            return pid;
41        }
42
43        private LogSequenceNumber lsn;
44        /** TODO */
45    public LogSequenceNumber getLsn() {
46            return lsn;
47        }
48
49        private LogSequenceNumber read_lsn;
50        /** TODO */
51    public LogSequenceNumber getReadLsn() {
52            return read_lsn;
53        }
54
55        private int mvcc_ref;
56        /** TODO */
57    public int getMultiversionRef() {
58            return mvcc_ref;
59        }
60
61        private int status;
62        /** TODO */
63    public int getStatus() {
64            return status;
65        }
66
67        private byte[] gid;
68        public byte[] getGId() {
69            return gid;
70        }
71
72        private String name;
73        /** TODO */
74    public String getName() {
75            return name;
76        }
77
78        /** {@inheritDoc} */
79    public String toString() {
80            return "Active:"
81                + "\n      txnid=" + txnid
82                + "\n      parentid=" + parentid
83                + "\n      pid=" + pid
84                + "\n      lsn=" + lsn
85                + "\n      read_lsn=" + read_lsn
86                + "\n      mvcc_ref=" + mvcc_ref
87                + "\n      status=" + status
88                + "\n      gid=" + DbUtil.byteArrayToString(gid)
89                + "\n      name=" + name
90                ;
91        }
92    };
93
94    private int st_nrestores;
95    /** TODO */
96    public int getNumRestores() {
97        return st_nrestores;
98    }
99
100    private LogSequenceNumber st_last_ckp;
101    /** TODO */
102    public LogSequenceNumber getLastCkp() {
103        return st_last_ckp;
104    }
105
106    private long st_time_ckp;
107    /** TODO */
108    public long getTimeCkp() {
109        return st_time_ckp;
110    }
111
112    private int st_last_txnid;
113    /** TODO */
114    public int getLastTxnId() {
115        return st_last_txnid;
116    }
117
118    private int st_maxtxns;
119    /** TODO */
120    public int getMaxTxns() {
121        return st_maxtxns;
122    }
123
124    private long st_naborts;
125    /** TODO */
126    public long getNaborts() {
127        return st_naborts;
128    }
129
130    private long st_nbegins;
131    /** TODO */
132    public long getNumBegins() {
133        return st_nbegins;
134    }
135
136    private long st_ncommits;
137    /** TODO */
138    public long getNumCommits() {
139        return st_ncommits;
140    }
141
142    private int st_nactive;
143    /** TODO */
144    public int getNactive() {
145        return st_nactive;
146    }
147
148    private int st_nsnapshot;
149    /** TODO */
150    public int getNumSnapshot() {
151        return st_nsnapshot;
152    }
153
154    private int st_maxnactive;
155    /** TODO */
156    public int getMaxNactive() {
157        return st_maxnactive;
158    }
159
160    private int st_maxnsnapshot;
161    /** TODO */
162    public int getMaxNsnapshot() {
163        return st_maxnsnapshot;
164    }
165
166    private Active[] st_txnarray;
167    public Active[] getTxnarray() {
168        return st_txnarray;
169    }
170
171    private long st_region_wait;
172    /** TODO */
173    public long getRegionWait() {
174        return st_region_wait;
175    }
176
177    private long st_region_nowait;
178    /** TODO */
179    public long getRegionNowait() {
180        return st_region_nowait;
181    }
182
183    private int st_regsize;
184    /** TODO */
185    public int getRegSize() {
186        return st_regsize;
187    }
188
189    /** {@inheritDoc} */
190    public String toString() {
191        return "TransactionStats:"
192            + "\n  st_nrestores=" + st_nrestores
193            + "\n  st_last_ckp=" + st_last_ckp
194            + "\n  st_time_ckp=" + st_time_ckp
195            + "\n  st_last_txnid=" + st_last_txnid
196            + "\n  st_maxtxns=" + st_maxtxns
197            + "\n  st_naborts=" + st_naborts
198            + "\n  st_nbegins=" + st_nbegins
199            + "\n  st_ncommits=" + st_ncommits
200            + "\n  st_nactive=" + st_nactive
201            + "\n  st_nsnapshot=" + st_nsnapshot
202            + "\n  st_maxnactive=" + st_maxnactive
203            + "\n  st_maxnsnapshot=" + st_maxnsnapshot
204            + "\n  st_txnarray=" + DbUtil.objectArrayToString(st_txnarray, "st_txnarray")
205            + "\n  st_region_wait=" + st_region_wait
206            + "\n  st_region_nowait=" + st_region_nowait
207            + "\n  st_regsize=" + st_regsize
208            ;
209    }
210}
211