1 8 9 package com.sleepycat.je; 10 11 15 public class SequenceStats { 16 17 private int nGets; 18 private int nCachedGets; 19 private long current; 20 private long value; 21 private long lastValue; 22 private long min; 23 private long max; 24 private int cacheSize; 25 26 SequenceStats(int nGets, 27 int nCachedGets, 28 long current, 29 long value, 30 long lastValue, 31 long min, 32 long max, 33 int cacheSize) { 34 35 this.nGets = nGets; 36 this.nCachedGets = nCachedGets; 37 this.current = current; 38 this.value = value; 39 this.lastValue = lastValue; 40 this.min = min; 41 this.max = max; 42 this.cacheSize = cacheSize; 43 } 44 45 49 public int getNGets() { 50 return nGets; 51 } 52 53 57 public int getNCachedGets() { 58 return nCachedGets; 59 } 60 61 65 public long getCurrent() { 66 return current; 67 } 68 69 73 public long getValue() { 74 return value; 75 } 76 77 81 public long getLastValue() { 82 return lastValue; 83 } 84 85 89 public long getMin() { 90 return min; 91 } 92 93 97 public long getMax() { 98 return max; 99 } 100 101 105 public int getCacheSize() { 106 return cacheSize; 107 } 108 109 113 public String toString() { 114 return "nGets=" + nGets 115 + "\nnCachedGets=" + nCachedGets 116 + "\ncurrent=" + current 117 + "\nvalue=" + value 118 + "\nlastValue=" + lastValue 119 + "\nmin=" + min 120 + "\nmax=" + max 121 + "\ncacheSize=" + cacheSize 122 ; 123 } 124 } 125 | Popular Tags |