summaryrefslogtreecommitdiff
path: root/db/docs/api_java/rep_stat.html
diff options
context:
space:
mode:
Diffstat (limited to 'db/docs/api_java/rep_stat.html')
-rw-r--r--db/docs/api_java/rep_stat.html101
1 files changed, 101 insertions, 0 deletions
diff --git a/db/docs/api_java/rep_stat.html b/db/docs/api_java/rep_stat.html
new file mode 100644
index 000000000..47e64c25d
--- /dev/null
+++ b/db/docs/api_java/rep_stat.html
@@ -0,0 +1,101 @@
+<!--Id: rep_stat.so,v 10.7 2002/07/13 18:09:07 margo Exp -->
+<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
+<!--All rights reserved.-->
+<!--See the file LICENSE for redistribution information.-->
+<html>
+<head>
+<title>Berkeley DB: DbEnv.rep_stat</title>
+<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
+<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
+</head>
+<body bgcolor=white>
+<a name="2"><!--meow--></a>
+<table width="100%"><tr valign=top>
+<td>
+<h1>DbEnv.rep_stat</h1>
+</td>
+<td align=right>
+<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
+</td></tr></table>
+<hr size=1 noshade>
+<tt>
+<h3><pre>
+import com.sleepycat.db.*;
+<p>
+public DbRepStat rep_stat(int flags)
+ throws DbException;
+</pre></h3>
+<h1>Description</h1>
+<p>The DbEnv.rep_stat method returns the replication subsystem statistics.
+<p>The <b>flags</b> value must be set to 0 or
+the following value:
+<p><dl compact>
+<p><dt><a name="Db.DB_STAT_CLEAR">Db.DB_STAT_CLEAR</a><dd>Reset statistics after returning their values.
+</dl>
+<p>The DbEnv.rep_stat method creates a DbRepStat object encapsulating the
+replication subsystem statistics. The following data fields are
+available from the DbRepStat object:
+<p><dl compact>
+<dt>public int st_stat;<dd>The current replication mode. Set to <a href="../api_java/rep_start.html#DB_REP_MASTER">Db.DB_REP_MASTER</a> if the
+environment is a replication master, <a href="../api_java/rep_start.html#DB_REP_CLIENT">Db.DB_REP_CLIENT</a> if the
+environment is a replication client, <a href="../api_java/rep_start.html#DB_REP_LOGSONLY">Db.DB_REP_LOGSONLY</a> if the
+environment is a log-files-only replica, or 0 if replication is not
+configured.
+<dt>public DbLsn st_next_lsn;<dd>In replication environments configured as masters, the next LSN expected.
+In replication environments configured as clients, the next LSN to be used.
+<dt>public DbLsn st_waiting_lsn;<dd>The LSN of the first missed log record being waited for, or 0 if no log
+records are currently missing.
+<dt>public int st_dupmasters;<dd>The number of duplicate master conditions detected.
+<dt>public int st_env_id;<dd>The current environment ID.
+<dt>public int st_env_priority;<dd>The current environment priority.
+<dt>public int st_gen;<dd>The current generation number.
+<dt>public int st_log_duplicated;<dd>The number of duplicate log records received.
+<dt>public int st_log_queued;<dd>The number of log records currently queued.
+<dt>public int st_log_queued_max;<dd>The maximum number of log records ever queued at once.
+<dt>public int st_log_queued_total;<dd>The total number of log records queued.
+<dt>public int st_log_records;<dd>The number of log records received and appended to the log.
+<dt>public int st_log_requested;<dd>The number of log records missed and requested.
+<dt>public int st_master;<dd>The current master environment ID.
+<dt>public int st_master_changes;<dd>The number of times the master has changed.
+<dt>public int st_msgs_badgen;<dd>The number of messages received with a bad generation number.
+<dt>public int st_msgs_processed;<dd>The number of messages received and processed.
+<dt>public int st_msgs_recover;<dd>The number of messages ignored due to pending recovery.
+<dt>public int st_msgs_send_failures;<dd>The number of failed message sends.
+<dt>public int st_msgs_sent;<dd>The number of messages sent.
+<dt>public int st_newsites;<dd>The number of new site messages received.
+<dt>public int st_outdated;<dd>The number of outdated conditions detected.
+<dt>public int st_txns_applied;<dd>The number of transactions applied.
+<dt>public int st_elections;<dd>The number of elections held.
+<dt>public int st_elections_won;<dd>The number of elections won.
+<dt>public int st_election_status;<dd>The current election phase (0 if no election is in progress).
+<dt>public int st_election_cur_winner;<dd>The election winner.
+<dt>public int st_election_gen;<dd>The election generation number.
+<dt>public DbLsn st_election_lsn;<dd>The maximum LSN of election winner.
+<dt>public int st_election_nsites;<dd>The number sites expected to participate in elections.
+<dt>public int st_nthrottles;<dd>Transmission limited. This indicates the number of times that data
+transmission was stopped to limit the amount of data sent in response
+to a single call to <a href="../api_java/rep_message.html">DbEnv.rep_process_message</a>.
+<dt>public int st_election_priority;<dd>The election priority.
+<dt>public int st_election_tiebreaker;<dd>The election tiebreaker value.
+<dt>public int st_election_votes;<dd>The votes received this election round.
+</dl>
+<p>The DbEnv.rep_stat method throws an exception that encapsulates a non-zero error value on
+failure.
+<h1>Errors</h1>
+<p>The DbEnv.rep_stat method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods.
+If a catastrophic error has occurred, the DbEnv.rep_stat method may fail and
+throw a <a href="../api_java/runrec_class.html">DbRunRecoveryException</a>,
+in which case all subsequent Berkeley DB calls will fail in the same way.
+<h1>See Also</h1>
+<a href="../api_java/rep_start.html">DbEnv.rep_start</a>,
+<a href="../api_java/rep_elect.html">DbEnv.rep_elect</a>,
+<a href="../api_java/rep_message.html">DbEnv.rep_process_message</a>
+and
+<a href="../api_java/rep_transport.html">DbEnv.set_rep_transport</a>.
+</tt>
+<table width="100%"><tr><td><br></td><td align=right>
+<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
+</td></tr></table>
+<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
+</body>
+</html>