KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > persist > evolve > EvolveStats


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

8
9 package com.sleepycat.persist.evolve;
10
11 /**
12  * Statistics accumulated during eager entity evolution.
13  *
14  * @see com.sleepycat.persist.evolve Class Evolution
15  * @author Mark Hayes
16  */

17 public class EvolveStats {
18
19     private int nRead;
20     private int nConverted;
21
22     EvolveStats() {
23     }
24
25     void add(int nRead, int nConverted) {
26         this.nRead += nRead;
27         this.nConverted += nConverted;
28     }
29
30     /**
31      * The total number of entities read during eager evolution.
32      */

33     public int getNRead() {
34         return nRead;
35     }
36
37     /**
38      * The total number of entities converted during eager evolution.
39      */

40     public int getNConverted() {
41         return nConverted;
42     }
43 }
44
Popular Tags