• 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.DbConstants;
13
14/**
15Replication statistics for a database environment.
16*/
17public class ReplicationStats {
18    // no public constructor
19    /* package */ ReplicationStats() {}
20    /**
21    The environment is configured as a replication client, as reported by {@link #getStatus}.
22    */
23    public static final int REP_CLIENT = DbConstants.DB_REP_CLIENT;
24
25    /**
26    The environment is configured as a replication master, as reported by {@link #getStatus}.
27    */
28    public static final int REP_MASTER = DbConstants.DB_REP_MASTER;
29
30    /**
31    Replication is not configured for this environment, as reported by {@link #getStatus}.
32    */
33    public static final int REP_NONE = 0;
34
35    private long st_log_queued;
36    /** TODO */
37    public long getLogQueued() {
38        return st_log_queued;
39    }
40
41    private int st_startup_complete;
42    /** TODO */
43    public boolean getStartupComplete() {
44        return (st_startup_complete != 0);
45    }
46
47    private int st_status;
48    /** TODO */
49    public int getStatus() {
50        return st_status;
51    }
52
53    private LogSequenceNumber st_next_lsn;
54    /** TODO */
55    public LogSequenceNumber getNextLsn() {
56        return st_next_lsn;
57    }
58
59    private LogSequenceNumber st_waiting_lsn;
60    /** TODO */
61    public LogSequenceNumber getWaitingLsn() {
62        return st_waiting_lsn;
63    }
64
65    private LogSequenceNumber st_max_perm_lsn;
66    /** TODO */
67    public LogSequenceNumber getMaxPermLsn() {
68        return st_max_perm_lsn;
69    }
70
71    private int st_next_pg;
72    /** TODO */
73    public int getNextPages() {
74        return st_next_pg;
75    }
76
77    private int st_waiting_pg;
78    /** TODO */
79    public int getWaitingPages() {
80        return st_waiting_pg;
81    }
82
83    private int st_dupmasters;
84    /** TODO */
85    public int getDupmasters() {
86        return st_dupmasters;
87    }
88
89    private int st_env_id;
90    /** TODO */
91    public int getEnvId() {
92        return st_env_id;
93    }
94
95    private int st_env_priority;
96    /** TODO */
97    public int getEnvPriority() {
98        return st_env_priority;
99    }
100
101    private long st_bulk_fills;
102    /** TODO */
103    public long getBulkFills() {
104        return st_bulk_fills;
105    }
106
107    private long st_bulk_overflows;
108    /** TODO */
109    public long getBulkOverflows() {
110        return st_bulk_overflows;
111    }
112
113    private long st_bulk_records;
114    /** TODO */
115    public long getBulkRecords() {
116        return st_bulk_records;
117    }
118
119    private long st_bulk_transfers;
120    /** TODO */
121    public long getBulkTransfers() {
122        return st_bulk_transfers;
123    }
124
125    private long st_client_rerequests;
126    /** TODO */
127    public long getClientRerequests() {
128        return st_client_rerequests;
129    }
130
131    private long st_client_svc_req;
132    /** TODO */
133    public long getClientSvcReq() {
134        return st_client_svc_req;
135    }
136
137    private long st_client_svc_miss;
138    /** TODO */
139    public long getClientSvcMiss() {
140        return st_client_svc_miss;
141    }
142
143    private int st_gen;
144    /** TODO */
145    public int getGen() {
146        return st_gen;
147    }
148
149    private int st_egen;
150    /** TODO */
151    public int getEgen() {
152        return st_egen;
153    }
154
155    private long st_log_duplicated;
156    /** TODO */
157    public long getLogDuplicated() {
158        return st_log_duplicated;
159    }
160
161    private long st_log_queued_max;
162    /** TODO */
163    public long getLogQueuedMax() {
164        return st_log_queued_max;
165    }
166
167    private long st_log_queued_total;
168    /** TODO */
169    public long getLogQueuedTotal() {
170        return st_log_queued_total;
171    }
172
173    private long st_log_records;
174    /** TODO */
175    public long getLogRecords() {
176        return st_log_records;
177    }
178
179    private long st_log_requested;
180    /** TODO */
181    public long getLogRequested() {
182        return st_log_requested;
183    }
184
185    private int st_master;
186    /** TODO */
187    public int getMaster() {
188        return st_master;
189    }
190
191    private long st_master_changes;
192    /** TODO */
193    public long getMasterChanges() {
194        return st_master_changes;
195    }
196
197    private long st_msgs_badgen;
198    /** TODO */
199    public long getMsgsBadgen() {
200        return st_msgs_badgen;
201    }
202
203    private long st_msgs_processed;
204    /** TODO */
205    public long getMsgsProcessed() {
206        return st_msgs_processed;
207    }
208
209    private long st_msgs_recover;
210    /** TODO */
211    public long getMsgsRecover() {
212        return st_msgs_recover;
213    }
214
215    private long st_msgs_send_failures;
216    /** TODO */
217    public long getMsgsSendFailures() {
218        return st_msgs_send_failures;
219    }
220
221    private long st_msgs_sent;
222    /** TODO */
223    public long getMsgsSent() {
224        return st_msgs_sent;
225    }
226
227    private long st_newsites;
228    /** TODO */
229    public long getNewsites() {
230        return st_newsites;
231    }
232
233    private int st_nsites;
234    /** TODO */
235    public int getNumSites() {
236        return st_nsites;
237    }
238
239    private long st_nthrottles;
240    /** TODO */
241    public long getNumThrottles() {
242        return st_nthrottles;
243    }
244
245    private long st_outdated;
246    /** TODO */
247    public long getOutdated() {
248        return st_outdated;
249    }
250
251    private long st_pg_duplicated;
252    /** TODO */
253    public long getPagesDuplicated() {
254        return st_pg_duplicated;
255    }
256
257    private long st_pg_records;
258    /** TODO */
259    public long getPagesRecords() {
260        return st_pg_records;
261    }
262
263    private long st_pg_requested;
264    /** TODO */
265    public long getPagesRequested() {
266        return st_pg_requested;
267    }
268
269    private long st_txns_applied;
270    /** TODO */
271    public long getTxnsApplied() {
272        return st_txns_applied;
273    }
274
275    private long st_startsync_delayed;
276    /** TODO */
277    public long getStartSyncDelayed() {
278        return st_startsync_delayed;
279    }
280
281    private long st_elections;
282    /** TODO */
283    public long getElections() {
284        return st_elections;
285    }
286
287    private long st_elections_won;
288    /** TODO */
289    public long getElectionsWon() {
290        return st_elections_won;
291    }
292
293    private int st_election_cur_winner;
294    /** TODO */
295    public int getElectionCurWinner() {
296        return st_election_cur_winner;
297    }
298
299    private int st_election_gen;
300    /** TODO */
301    public int getElectionGen() {
302        return st_election_gen;
303    }
304
305    private LogSequenceNumber st_election_lsn;
306    /** TODO */
307    public LogSequenceNumber getElectionLsn() {
308        return st_election_lsn;
309    }
310
311    private int st_election_nsites;
312    /** TODO */
313    public int getElectionNumSites() {
314        return st_election_nsites;
315    }
316
317    private int st_election_nvotes;
318    /** TODO */
319    public int getElectionNumVotes() {
320        return st_election_nvotes;
321    }
322
323    private int st_election_priority;
324    /** TODO */
325    public int getElectionPriority() {
326        return st_election_priority;
327    }
328
329    private int st_election_status;
330    /** TODO */
331    public int getElectionStatus() {
332        return st_election_status;
333    }
334
335    private int st_election_tiebreaker;
336    /** TODO */
337    public int getElectionTiebreaker() {
338        return st_election_tiebreaker;
339    }
340
341    private int st_election_votes;
342    /** TODO */
343    public int getElectionVotes() {
344        return st_election_votes;
345    }
346
347    private int st_election_sec;
348    /** TODO */
349    public int getElectionSec() {
350        return st_election_sec;
351    }
352
353    private int st_election_usec;
354    /** TODO */
355    public int getElectionUsec() {
356        return st_election_usec;
357    }
358
359    private int st_max_lease_sec;
360    /** TODO */
361    public int getMaxLeaseSec() {
362        return st_max_lease_sec;
363    }
364
365    private int st_max_lease_usec;
366    /** TODO */
367    public int getMaxLeaseUsec() {
368        return st_max_lease_usec;
369    }
370
371    /**
372    For convenience, the ReplicationStats class has a toString method
373    that lists all the data fields.
374    */
375    public String toString() {
376        return "ReplicationStats:"
377            + "\n  st_log_queued=" + st_log_queued
378            + "\n  st_startup_complete=" + (st_startup_complete != 0)
379            + "\n  st_status=" + st_status
380            + "\n  st_next_lsn=" + st_next_lsn
381            + "\n  st_waiting_lsn=" + st_waiting_lsn
382            + "\n  st_max_perm_lsn=" + st_max_perm_lsn
383            + "\n  st_next_pg=" + st_next_pg
384            + "\n  st_waiting_pg=" + st_waiting_pg
385            + "\n  st_dupmasters=" + st_dupmasters
386            + "\n  st_env_id=" + st_env_id
387            + "\n  st_env_priority=" + st_env_priority
388            + "\n  st_bulk_fills=" + st_bulk_fills
389            + "\n  st_bulk_overflows=" + st_bulk_overflows
390            + "\n  st_bulk_records=" + st_bulk_records
391            + "\n  st_bulk_transfers=" + st_bulk_transfers
392            + "\n  st_client_rerequests=" + st_client_rerequests
393            + "\n  st_client_svc_req=" + st_client_svc_req
394            + "\n  st_client_svc_miss=" + st_client_svc_miss
395            + "\n  st_gen=" + st_gen
396            + "\n  st_egen=" + st_egen
397            + "\n  st_log_duplicated=" + st_log_duplicated
398            + "\n  st_log_queued_max=" + st_log_queued_max
399            + "\n  st_log_queued_total=" + st_log_queued_total
400            + "\n  st_log_records=" + st_log_records
401            + "\n  st_log_requested=" + st_log_requested
402            + "\n  st_master=" + st_master
403            + "\n  st_master_changes=" + st_master_changes
404            + "\n  st_msgs_badgen=" + st_msgs_badgen
405            + "\n  st_msgs_processed=" + st_msgs_processed
406            + "\n  st_msgs_recover=" + st_msgs_recover
407            + "\n  st_msgs_send_failures=" + st_msgs_send_failures
408            + "\n  st_msgs_sent=" + st_msgs_sent
409            + "\n  st_newsites=" + st_newsites
410            + "\n  st_nsites=" + st_nsites
411            + "\n  st_nthrottles=" + st_nthrottles
412            + "\n  st_outdated=" + st_outdated
413            + "\n  st_pg_duplicated=" + st_pg_duplicated
414            + "\n  st_pg_records=" + st_pg_records
415            + "\n  st_pg_requested=" + st_pg_requested
416            + "\n  st_txns_applied=" + st_txns_applied
417            + "\n  st_startsync_delayed=" + st_startsync_delayed
418            + "\n  st_elections=" + st_elections
419            + "\n  st_elections_won=" + st_elections_won
420            + "\n  st_election_cur_winner=" + st_election_cur_winner
421            + "\n  st_election_gen=" + st_election_gen
422            + "\n  st_election_lsn=" + st_election_lsn
423            + "\n  st_election_nsites=" + st_election_nsites
424            + "\n  st_election_nvotes=" + st_election_nvotes
425            + "\n  st_election_priority=" + st_election_priority
426            + "\n  st_election_status=" + st_election_status
427            + "\n  st_election_tiebreaker=" + st_election_tiebreaker
428            + "\n  st_election_votes=" + st_election_votes
429            + "\n  st_election_sec=" + st_election_sec
430            + "\n  st_election_usec=" + st_election_usec
431            + "\n  st_max_lease_sec=" + st_max_lease_sec
432            + "\n  st_max_lease_usec=" + st_max_lease_usec
433            ;
434    }
435}
436