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/** 13Replication Manager statistics for a database environment. 14*/ 15public class ReplicationManagerStats { 16 // no public constructor 17 /* package */ ReplicationManagerStats() {} 18 19 private int st_perm_failed; 20 /** 21 The number of times a PERM message originating at this site did 22 not receive sufficient acknowledgement from clients, according to the 23 configured acknowledgement policy and acknowledgement timeout.. 24 */ 25 public int getPermFailed() { 26 return st_perm_failed; 27 } 28 29 private int st_msgs_queued; 30 /** 31 The number of messages queued due to a network delay.. 32 */ 33 public int getMsgsQueued() { 34 return st_msgs_queued; 35 } 36 37 private int st_msgs_dropped; 38 /** 39 The number of messages discarded due to queue length overflows.. 40 */ 41 public int getMsgsDropped() { 42 return st_msgs_dropped; 43 } 44 45 private int st_connection_drop; 46 /** 47 The number of existing connections that have been dropped since the 48 statistics were last reset.. 49 */ 50 public int getConnectionDrop() { 51 return st_connection_drop; 52 } 53 54 private int st_connect_fail; 55 /** 56 The number of times new connection attempts have failed.. 57 */ 58 public int getConnectFail() { 59 return st_connect_fail; 60 } 61 62 /** 63 For convenience, the ReplicationManagerStats class has a toString method 64 that lists all the data fields. 65 */ 66 public String toString() { 67 return "ReplicationManagerStats:" 68 + "\n st_perm_failed=" + st_perm_failed 69 + "\n st_msgs_queued=" + st_msgs_queued 70 + "\n st_msgs_dropped=" + st_msgs_dropped 71 + "\n st_connection_drop=" + st_connection_drop 72 + "\n st_connect_fail=" + st_connect_fail 73 ; 74 } 75} 76