View Javadoc

1   package org.kuali.common.impex.data.service.impl;
2   
3   import org.kuali.common.util.LongCounter;
4   
5   public class TableTracker {
6   
7   	// Tracks total amount of data in the table
8   	LongCounter totalDataSize = new LongCounter();
9   	// Tracks total number of rows in the table
10  	LongCounter totalRowCount = new LongCounter();
11  	// Tracks number of rows since we last emptied our memory cache to disk
12  	LongCounter currentRowCount = new LongCounter();
13  	// Tracks total amount of data we've accumulated since we last emptied our memory cache to disk
14  	LongCounter currentDataSize = new LongCounter();
15  
16  	public LongCounter getTotalDataSize() {
17  		return totalDataSize;
18  	}
19  
20  	public void setTotalDataSize(LongCounter totalDataSize) {
21  		this.totalDataSize = totalDataSize;
22  	}
23  
24  	public LongCounter getTotalRowCount() {
25  		return totalRowCount;
26  	}
27  
28  	public void setTotalRowCount(LongCounter totalRowCount) {
29  		this.totalRowCount = totalRowCount;
30  	}
31  
32  	public LongCounter getCurrentRowCount() {
33  		return currentRowCount;
34  	}
35  
36  	public void setCurrentRowCount(LongCounter currentRowCount) {
37  		this.currentRowCount = currentRowCount;
38  	}
39  
40  	public LongCounter getCurrentDataSize() {
41  		return currentDataSize;
42  	}
43  
44  	public void setCurrentDataSize(LongCounter currentDataSize) {
45  		this.currentDataSize = currentDataSize;
46  	}
47  
48  }