001package org.kuali.ole.docstore.common.util;
002
003import java.util.Date;
004
005/**
006 * Created by sambasivam on 20/10/14.
007 */
008public class BibInfoStatistics {
009
010    private Date startDateTime;
011    private Date endDateTime;
012    private long bibCount;
013    private Date batchStartDateTime;
014    private Date batchEndDateTime;
015    private long batchTotalTime;
016    private long totalTime;
017
018
019    public Date getStartDateTime() {
020        return startDateTime;
021    }
022
023    public void setStartDateTime(Date startDateTime) {
024        this.startDateTime = startDateTime;
025    }
026
027    public Date getEndDateTime() {
028        return endDateTime;
029    }
030
031    public void setEndDateTime(Date endDateTime) {
032        this.endDateTime = endDateTime;
033    }
034
035    public long getBibCount() {
036        return bibCount;
037    }
038
039    public void setBibCount(long bibCount) {
040        this.bibCount = bibCount;
041    }
042
043    public Date getBatchStartDateTime() {
044        return batchStartDateTime;
045    }
046
047    public void setBatchStartDateTime(Date batchStartDateTime) {
048        this.batchStartDateTime = batchStartDateTime;
049    }
050
051    public Date getBatchEndDateTime() {
052        return batchEndDateTime;
053    }
054
055    public void setBatchEndDateTime(Date batchEndDateTime) {
056        this.batchEndDateTime = batchEndDateTime;
057    }
058
059    public long getBatchTotalTime() {
060        return batchTotalTime;
061    }
062
063    public void setBatchTotalTime(long batchTotalTime) {
064        this.batchTotalTime = batchTotalTime;
065    }
066
067    public long getTotalTime() {
068        return totalTime;
069    }
070
071    public void setTotalTime(long totalTime) {
072        this.totalTime = totalTime;
073    }
074
075    @Override
076    public String toString() {
077        return  "Start Time : " + startDateTime +
078                "\nBatch start time : " + batchStartDateTime +
079                "\nBatch end time : " + batchEndDateTime +
080                "\nBatch total time : " + batchTotalTime +
081                "\nTotal bib records inserted : " + bibCount +
082                "\nEnd Time : " + endDateTime +
083                "\nTotal Time : " + totalTime  + "ms";
084    }
085}