View Javadoc

1   /*
2    * #%L
3    * Bitrepository Integrity Service
4    * %%
5    * Copyright (C) 2010 - 2013 The State and University Library, The Royal Library and The State Archives, Denmark
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as 
9    * published by the Free Software Foundation, either version 2.1 of the 
10   * License, or (at your option) any later version.
11   * 
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Lesser Public License for more details.
16   * 
17   * You should have received a copy of the GNU General Lesser Public 
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/lgpl-2.1.html>.
20   * #L%
21   */
22  package org.bitrepository.integrityservice.cache;
23  
24  import java.util.Date;
25  
26  public class PillarStat {
27  
28      /** The ID of the pillar */
29      private String pillarID;
30      /** The ID of the collection */
31      private String collectionID;
32      /** The number of files in the collection */
33      private Long fileCount;
34      /** The size of the collection */
35      private Long dataSize; 
36      /** The number of missing files on the pillar */
37      private Long missingFiles; 
38      /** The number of checksum errors */
39      private Long checksumErrors;
40      /** The date that the statistics were collected */
41      private Date statsTime;
42      /** The date that the statistics were updated */
43      private Date updateTime;
44      
45      public PillarStat(String pillarID, String collectionID, Long fileCount, Long dataSize, Long missingFiles, 
46              Long checksumErrors, Date statsTime, Date updateTime) {
47          this.pillarID = pillarID;
48          this.collectionID = collectionID;
49          this.fileCount = fileCount;
50          this.dataSize = dataSize;
51          this.missingFiles = missingFiles;
52          this.checksumErrors = checksumErrors;
53          this.statsTime = statsTime;
54          this.updateTime = updateTime;
55      }
56      
57      public String getPillarID() {
58          return pillarID;
59      }
60      public void setPillarID(String pillarID) {
61          this.pillarID = pillarID;
62      }
63      public String getCollectionID() {
64          return collectionID;
65      }
66      public void setCollectionID(String collectionID) {
67          this.collectionID = collectionID;
68      }
69      public Long getFileCount() {
70          return fileCount;
71      }
72      public void setFileCount(Long fileCount) {
73          this.fileCount = fileCount;
74      }
75      public Long getDataSize() {
76          return dataSize;
77      }
78      public void setDataSize(Long dataSize) {
79          this.dataSize = dataSize;
80      }
81      public Long getMissingFiles() {
82          return missingFiles;
83      }
84      public void setMissingFiles(Long missingFiles) {
85          this.missingFiles = missingFiles;
86      }
87      public Long getChecksumErrors() {
88          return checksumErrors;
89      }
90      public void setChecksumErrors(Long checksumErrors) {
91          this.checksumErrors = checksumErrors;
92      }
93      public Date getStatsTime() {
94          return statsTime;
95      }
96      public void setStatsTime(Date statsTime) {
97          this.statsTime = statsTime;
98      }
99      public Date getUpdateTime() {
100         return updateTime;
101     }
102     public void setUpdateTime(Date updateTime) {
103         this.updateTime = updateTime;
104     }
105     
106 }