• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/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,2008 Oracle.  All rights reserved.
8 */
9
10package com.sleepycat.db;
11
12/**
13Log statistics for a database environment.
14*/
15public class LogStats {
16    // no public constructor
17    /* package */ LogStats() {}
18
19    private int st_magic;
20    /**
21    The magic number that identifies a file as a log file.
22    */
23    public int getMagic() {
24        return st_magic;
25    }
26
27    private int st_version;
28    /**
29    The version of the log file type.
30    */
31    public int getVersion() {
32        return st_version;
33    }
34
35    private int st_mode;
36    /**
37    The mode of any created log files.
38    */
39    public int getMode() {
40        return st_mode;
41    }
42
43    private int st_lg_bsize;
44    /**
45    The in-memory log record cache size.
46    */
47    public int getLgBSize() {
48        return st_lg_bsize;
49    }
50
51    private int st_lg_size;
52    /**
53    The current log file size.
54    */
55    public int getLgSize() {
56        return st_lg_size;
57    }
58
59    private int st_wc_bytes;
60    /**
61    The number of bytes over and above {@link com.sleepycat.db.LogStats#getWcMbytes LogStats.getWcMbytes}
62    written to this log since the last checkpoint.
63    */
64    public int getWcBytes() {
65        return st_wc_bytes;
66    }
67
68    private int st_wc_mbytes;
69    /**
70    The number of megabytes written to this log since the last checkpoint.
71    */
72    public int getWcMbytes() {
73        return st_wc_mbytes;
74    }
75
76    private int st_record;
77    /** The number of records written to this log. **/
78    public int getRecord() {
79        return st_record;
80    }
81
82    private int st_w_bytes;
83    /**
84    The number of bytes over and above st_w_mbytes written to this log.
85    */
86    public int getWBytes() {
87        return st_w_bytes;
88    }
89
90    private int st_w_mbytes;
91    /**
92    The number of megabytes written to this log.
93    */
94    public int getWMbytes() {
95        return st_w_mbytes;
96    }
97
98    private int st_wcount;
99    /**
100    The number of times the log has been written to disk.
101    */
102    public int getWCount() {
103        return st_wcount;
104    }
105
106    private int st_wcount_fill;
107    /**
108    The number of times the log has been written to disk because the
109    in-memory log record cache filled up.
110    */
111    public int getWCountFill() {
112        return st_wcount_fill;
113    }
114
115    private int st_rcount;
116    /** The number of times the log has been read from disk. **/
117    public int getRCount() {
118        return st_rcount;
119    }
120
121    private int st_scount;
122    /**
123    The number of times the log has been flushed to disk.
124    */
125    public int getSCount() {
126        return st_scount;
127    }
128
129    private int st_region_wait;
130    /**
131    The number of times that a thread of control was forced to wait
132    before obtaining the region lock.
133    */
134    public int getRegionWait() {
135        return st_region_wait;
136    }
137
138    private int st_region_nowait;
139    /**
140    The number of times that a thread of control was able to obtain the
141    region lock without waiting.
142    */
143    public int getRegionNowait() {
144        return st_region_nowait;
145    }
146
147    private int st_cur_file;
148    /**
149    The current log file number.
150    */
151    public int getCurFile() {
152        return st_cur_file;
153    }
154
155    private int st_cur_offset;
156    /**
157    The byte offset in the current log file.
158    */
159    public int getCurOffset() {
160        return st_cur_offset;
161    }
162
163    private int st_disk_file;
164    /**
165    The log file number of the last record known to be on disk.
166    */
167    public int getDiskFile() {
168        return st_disk_file;
169    }
170
171    private int st_disk_offset;
172    /**
173    The byte offset of the last record known to be on disk.
174    */
175    public int getDiskOffset() {
176        return st_disk_offset;
177    }
178
179    private int st_maxcommitperflush;
180    /**
181    The maximum number of commits contained in a single log flush.
182    */
183    public int getMaxCommitperflush() {
184        return st_maxcommitperflush;
185    }
186
187    private int st_mincommitperflush;
188    /**
189    The minimum number of commits contained in a single log flush that
190    contained a commit.
191    */
192    public int getMinCommitperflush() {
193        return st_mincommitperflush;
194    }
195
196    private int st_regsize;
197    /**
198    The size of the region.
199    */
200    public int getRegSize() {
201        return st_regsize;
202    }
203
204    /**
205    For convenience, the LogStats class has a toString method that lists
206    all the data fields.
207    */
208    public String toString() {
209        return "LogStats:"
210            + "\n  st_magic=" + st_magic
211            + "\n  st_version=" + st_version
212            + "\n  st_mode=" + st_mode
213            + "\n  st_lg_bsize=" + st_lg_bsize
214            + "\n  st_lg_size=" + st_lg_size
215            + "\n  st_wc_bytes=" + st_wc_bytes
216            + "\n  st_wc_mbytes=" + st_wc_mbytes
217            + "\n  st_record=" + st_record
218            + "\n  st_w_bytes=" + st_w_bytes
219            + "\n  st_w_mbytes=" + st_w_mbytes
220            + "\n  st_wcount=" + st_wcount
221            + "\n  st_wcount_fill=" + st_wcount_fill
222            + "\n  st_rcount=" + st_rcount
223            + "\n  st_scount=" + st_scount
224            + "\n  st_region_wait=" + st_region_wait
225            + "\n  st_region_nowait=" + st_region_nowait
226            + "\n  st_cur_file=" + st_cur_file
227            + "\n  st_cur_offset=" + st_cur_offset
228            + "\n  st_disk_file=" + st_disk_file
229            + "\n  st_disk_offset=" + st_disk_offset
230            + "\n  st_maxcommitperflush=" + st_maxcommitperflush
231            + "\n  st_mincommitperflush=" + st_mincommitperflush
232            + "\n  st_regsize=" + st_regsize
233            ;
234    }
235}
236