Enabling archiving by default
[proteocache.git] / datadb / compbio / beans / Total.java
1 package compbio.beans;
2
3 /**
4  * bean is stored Total for a TotalJobsStatisticBean.
5  * 
6  * @param total
7  *            total number of jobs for a day
8  * @param totalOK
9  *           number of jobs with execution status OK for a date
10  * @param totalStopped
11  *                       number of jobs with execution status STOPPED for a date
12  * @param totalError
13  *           number of jobs with execution status Jpred ERROR for a date
14  * @param totalTimeOut
15  *                       number of jobs with execution status TIMEDOUT for a date
16  */
17 public class Total {
18         private long total;                                     
19         private long totalOK;                           
20         private long totalStopped;                      
21         private long totalError;                                
22         private long totalTimeOut;                      
23                 
24         public Total(long total, long totalOK, long totalStopped, long totalError, long totalTimeOut) {
25                 this.total = total;
26                 this.totalOK = totalOK;
27                 this.totalStopped = totalStopped;
28                 this.totalError = totalError;
29                 this.totalTimeOut = totalTimeOut;
30         }
31         
32         public void setTotal(long tot) {
33                 this.total = tot;
34         }
35
36         public long getTotal() {
37                 return total;
38         }
39
40         public void setTotalOK(long tot) {
41                 this.totalOK = tot;
42         }
43
44         public long getTotalOK() {
45                 return totalOK;
46         }
47
48         public void setTotalStopped(long tot) {
49                 this.totalStopped = tot;
50         }
51
52         public long getTotalStopped() {
53                 return totalStopped;
54         }
55
56         public void setTotalError(long tot) {
57                 this.totalError = tot;
58         }
59
60         public long getTotalError() {
61                 return totalError;
62         }
63
64         public void setTotalTimeOut(long tot) {
65                 this.totalTimeOut = tot;
66         }
67
68         public long getTotalTimeOut() {
69                 return totalTimeOut;
70         }
71 }