KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > SequenceStats


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2005,2006 Oracle. All rights reserved.
5  *
6  * $Id: SequenceStats.java,v 1.5 2006/10/30 21:14:12 bostic Exp $
7  */

8
9 package com.sleepycat.je;
10
11 /**
12  * Javadoc for this public class is generated via
13  * the doc templates in the doc_src directory.
14  */

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     /**
46      * Javadoc for this public method is generated via
47      * the doc templates in the doc_src directory.
48      */

49     public int getNGets() {
50         return nGets;
51     }
52
53     /**
54      * Javadoc for this public method is generated via
55      * the doc templates in the doc_src directory.
56      */

57     public int getNCachedGets() {
58         return nCachedGets;
59     }
60
61     /**
62      * Javadoc for this public method is generated via
63      * the doc templates in the doc_src directory.
64      */

65     public long getCurrent() {
66         return current;
67     }
68
69     /**
70      * Javadoc for this public method is generated via
71      * the doc templates in the doc_src directory.
72      */

73     public long getValue() {
74         return value;
75     }
76
77     /**
78      * Javadoc for this public method is generated via
79      * the doc templates in the doc_src directory.
80      */

81     public long getLastValue() {
82         return lastValue;
83     }
84
85     /**
86      * Javadoc for this public method is generated via
87      * the doc templates in the doc_src directory.
88      */

89     public long getMin() {
90         return min;
91     }
92
93     /**
94      * Javadoc for this public method is generated via
95      * the doc templates in the doc_src directory.
96      */

97     public long getMax() {
98         return max;
99     }
100
101     /**
102      * Javadoc for this public method is generated via
103      * the doc templates in the doc_src directory.
104      */

105     public int getCacheSize() {
106         return cacheSize;
107     }
108
109     /**
110      * Javadoc for this public method is generated via
111      * the doc templates in the doc_src directory.
112      */

113     public String JavaDoc 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