001package org.kuali.ole.docstore.utility; 002 003import java.util.ArrayList; 004import java.util.List; 005 006/** 007 * Created with IntelliJ IDEA. 008 * User: vk8458 009 * Date: 8/27/12 010 * Time: 2:03 PM 011 * To change this template use File | Settings | File Templates. 012 */ 013public class FileIngestStatistics { 014 private List<BatchIngestStatistics> batchStatisticsList = new ArrayList<BatchIngestStatistics>(); 015 private String fileName; 016 private String fileStatus; 017 018 public FileIngestStatistics() { 019 020 } 021 022 public String getFileName() { 023 return fileName; 024 } 025 026 public BatchIngestStatistics startBatch() { 027 BatchIngestStatistics batchStatistics = new BatchIngestStatistics(); 028 batchStatisticsList.add(batchStatistics); 029 return batchStatistics; 030 } 031 032 public void setFileName(String fileName) { 033 this.fileName = fileName; 034 } 035 036 public String getFileStatus() { 037 return fileStatus; 038 } 039 040 public void setFileStatus(String fileStatus) { 041 this.fileStatus = fileStatus; 042 } 043 044 public List<BatchIngestStatistics> getBatchStatisticsList() { 045 return batchStatisticsList; 046 } 047 048 public void setBatchStatisticsList(List<BatchIngestStatistics> batchStatisticsList) { 049 this.batchStatisticsList = batchStatisticsList; 050 } 051 052 @Override 053 public String toString() { 054 return "FileIngestStatistics{" + 055 "batchStatisticsList=" + batchStatisticsList + 056 ", fileName='" + fileName + '\'' + 057 ", fileStatus='" + fileStatus + '\'' + 058 '}'; 059 } 060}