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