1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2009 Oracle.  All rights reserved.
5 *
6 */
7using System;
8using System.Collections.Generic;
9using System.Text;
10
11namespace BerkeleyDB {
12    /// <summary>
13    /// Statistical information about the Replication Manager
14    /// </summary>
15    public class RepMgrStats {
16        private Internal.RepMgrStatStruct st;
17        internal RepMgrStats(Internal.RepMgrStatStruct stats) {
18            st = stats;
19        }
20
21        /// <summary>
22        /// Existing connections dropped.
23        /// </summary>
24        public ulong DroppedConnections { get { return st.st_connection_drop; } }
25        /// <summary>
26        /// # msgs discarded due to excessive queue length.
27        /// </summary>
28        public ulong DroppedMessages { get { return st.st_msgs_dropped; } }
29        /// <summary>
30        /// Failed new connection attempts.
31        /// </summary>
32        public ulong FailedConnections { get { return st.st_connect_fail; } }
33        /// <summary>
34        /// # of insufficiently ack'ed msgs.
35        /// </summary>
36        public ulong FailedMessages { get { return st.st_perm_failed; } }
37        /// <summary>
38        /// # msgs queued for network delay.
39        /// </summary>
40        public ulong QueuedMessages { get { return st.st_msgs_queued; } }
41    }
42}
43