View Javadoc
1   package org.kuali.ole.docstore.common.util;
2   
3   import java.util.Date;
4   
5   /**
6    * Created by sambasivam on 20/10/14.
7    */
8   public class BibInfoStatistics {
9   
10      private Date startDateTime;
11      private Date endDateTime;
12      private long bibCount;
13      private Date batchStartDateTime;
14      private Date batchEndDateTime;
15      private long batchTotalTime;
16      private long totalTime;
17  
18  
19      public Date getStartDateTime() {
20          return startDateTime;
21      }
22  
23      public void setStartDateTime(Date startDateTime) {
24          this.startDateTime = startDateTime;
25      }
26  
27      public Date getEndDateTime() {
28          return endDateTime;
29      }
30  
31      public void setEndDateTime(Date endDateTime) {
32          this.endDateTime = endDateTime;
33      }
34  
35      public long getBibCount() {
36          return bibCount;
37      }
38  
39      public void setBibCount(long bibCount) {
40          this.bibCount = bibCount;
41      }
42  
43      public Date getBatchStartDateTime() {
44          return batchStartDateTime;
45      }
46  
47      public void setBatchStartDateTime(Date batchStartDateTime) {
48          this.batchStartDateTime = batchStartDateTime;
49      }
50  
51      public Date getBatchEndDateTime() {
52          return batchEndDateTime;
53      }
54  
55      public void setBatchEndDateTime(Date batchEndDateTime) {
56          this.batchEndDateTime = batchEndDateTime;
57      }
58  
59      public long getBatchTotalTime() {
60          return batchTotalTime;
61      }
62  
63      public void setBatchTotalTime(long batchTotalTime) {
64          this.batchTotalTime = batchTotalTime;
65      }
66  
67      public long getTotalTime() {
68          return totalTime;
69      }
70  
71      public void setTotalTime(long totalTime) {
72          this.totalTime = totalTime;
73      }
74  
75      @Override
76      public String toString() {
77          return  "Start Time : " + startDateTime +
78                  "\nBatch start time : " + batchStartDateTime +
79                  "\nBatch end time : " + batchEndDateTime +
80                  "\nBatch total time : " + batchTotalTime +
81                  "\nTotal bib records inserted : " + bibCount +
82                  "\nEnd Time : " + endDateTime +
83                  "\nTotal Time : " + totalTime  + "ms";
84      }
85  }