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/** 13A SequenceStats object is used to return sequence statistics. 14*/ 15public class SequenceStats { 16 // no public constructor 17 /* package */ SequenceStats() {} 18 19 private int st_wait; 20 /** 21 The number of times a thread of control was forced to wait on the 22 handle mutex. 23 */ 24 public int getWait() { 25 return st_wait; 26 } 27 28 private int st_nowait; 29 /** 30 The number of times that a thread of control was able to obtain handle 31 mutex without waiting. 32 */ 33 public int getNowait() { 34 return st_nowait; 35 } 36 37 private long st_current; 38 /** 39 The current value of the sequence in the database. 40 */ 41 public long getCurrent() { 42 return st_current; 43 } 44 45 private long st_value; 46 /** 47 The current cached value of the sequence. 48 */ 49 public long getValue() { 50 return st_value; 51 } 52 53 private long st_last_value; 54 /** 55 The last cached value of the sequence. 56 */ 57 public long getLastValue() { 58 return st_last_value; 59 } 60 61 private long st_min; 62 /** 63 The minimum permitted value of the sequence. 64 */ 65 public long getMin() { 66 return st_min; 67 } 68 69 private long st_max; 70 /** 71 The maximum permitted value of the sequence. 72 */ 73 public long getMax() { 74 return st_max; 75 } 76 77 private int st_cache_size; 78 /** 79 The number of values that will be cached in this handle. 80 */ 81 public int getCacheSize() { 82 return st_cache_size; 83 } 84 85 private int st_flags; 86 /** 87 The flags value for the sequence. 88 */ 89 public int getFlags() { 90 return st_flags; 91 } 92 93 /** {@inheritDoc} */ 94 public String toString() { 95 return "SequenceStats:" 96 + "\n st_wait=" + st_wait 97 + "\n st_nowait=" + st_nowait 98 + "\n st_current=" + st_current 99 + "\n st_value=" + st_value 100 + "\n st_last_value=" + st_last_value 101 + "\n st_min=" + st_min 102 + "\n st_max=" + st_max 103 + "\n st_cache_size=" + st_cache_size 104 + "\n st_flags=" + st_flags 105 ; 106 } 107} 108