Clean up the code
[proteocache.git] / datadb / compbio / cassandra / DataBase.java
1 package compbio.cassandra;
2
3 import java.util.List;
4
5 import compbio.beans.JobBean;
6 import compbio.beans.ProteinBean;
7
8 public class DataBase {
9         private String date;
10         private int total; // total number of jobs
11         private int totalOK; // number of jobs with execution status OK
12         private int totalStopped; // number of jobs with execution status STOPPED
13         private int totalError; // number of jobs with execution status Jpred ERROR
14         private int totalTimeOut; // number of jobs with execution status TIMEOUT
15         private int totalJobs;
16         private int totalId; // total jobs for current protein sequence
17         private String id;
18         private String ip;
19         private String prot; // protein sequence
20         private String jpred;
21         private List<Integer> timeRez;
22         private List<Integer> timeTotalExec;
23         private JobBean logInfo;
24         private ProteinBean predictions;
25
26         public DataBase() {
27         }
28
29         public DataBase(String dat, int total) {
30                 this.date = dat;
31                 this.total = total;
32         }
33
34         public void setDate(String dat) {
35                 this.date = dat;
36         }
37
38         public String getDate() {
39                 if (null == date)
40                         return "1/1/1970";
41                 return date;
42         }
43
44         public void setTotal(int tot) {
45                 this.total = tot;
46         }
47
48         public int getTotal() {
49                 return total;
50         }
51
52         public void setTotalOK(int tot) {
53                 this.totalOK = tot;
54         }
55
56         public int getTotalOK() {
57                 return totalOK;
58         }
59
60         public void setTotalStopped(int tot) {
61                 this.totalStopped = tot;
62         }
63
64         public int getTotalStopped() {
65                 return totalStopped;
66         }
67
68         public void setTotalError(int tot) {
69                 this.totalError = tot;
70         }
71
72         public int getTotalError() {
73                 return totalError;
74         }
75
76         public void setTotalTimeOut(int tot) {
77                 this.totalTimeOut = tot;
78         }
79
80         public int getTotalTimeOut() {
81                 return totalTimeOut;
82         }
83
84         public void setTotalJobs(int totalJobs) {
85                 this.totalJobs = totalJobs;
86         }
87
88         public int getTotalJobs() {
89                 return totalJobs;
90         }
91
92         public void setTotalId(int totId) {
93                 this.totalId = totId;
94         }
95
96         public int getTotalId() {
97                 return totalId;
98         }
99
100         public void setProt(String prot) {
101                 this.prot = prot;
102         }
103
104         public String getProt() {
105                 return prot;
106         }
107
108         public void setJpred(String jpred) {
109                 this.jpred = jpred;
110         }
111
112         public String getJpred() {
113                 return jpred;
114         }
115
116         public void setId(String id) {
117                 this.id = id;
118         }
119
120         public String getId() {
121                 return id;
122         }
123
124         public void setIp(String ip) {
125                 this.ip = ip;
126         }
127
128         public String getIp() {
129                 return ip;
130         }
131
132         public void setTimeRez(List<Integer> timeRez) {
133                 this.timeRez = timeRez;
134         }
135
136         public List<Integer> getTimeRez() {
137                 return timeRez;
138         }
139
140         public void setTimeTotalExec(List<Integer> timeTotalExec) {
141                 this.timeTotalExec = timeTotalExec;
142         }
143
144         public List<Integer> getTimeTotalExec() {
145                 return timeTotalExec;
146         }
147
148         public void setLogInfo(JobBean logInfo) {
149                 this.logInfo = logInfo;
150         }
151
152         public JobBean getLogInfo() {
153                 return logInfo;
154         }
155
156         public void setPredictions(ProteinBean predictions) {
157                 this.predictions = predictions;
158         }
159
160         public ProteinBean getPredictions() {
161                 return predictions;
162         }
163
164 }