01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: EvolveStats.java,v 1.6.2.2 2008/01/07 15:14:19 cwl Exp $
07: */
08:
09: 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: }
|