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