Add servlets for queries with IP
[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<String> subProt;           // protein sequence divided by several parts for highlighting the particular part
21         private List<Integer> timeRez;
22         private List<Integer> timeTotalExec;
23         private StructureJobLog logInfo;
24         private AnnotatedProteinSequenceBean predictions;
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                 return date;
39         }
40
41         public void setTotal(int tot) {
42                 this.total = tot;
43         }
44
45         public int getTotal() {
46                 return total;
47         }
48
49         public void setTotalOK(int tot) {
50                 this.totalOK = tot;
51         }
52
53         public int getTotalOK() {
54                 return totalOK;
55         }
56
57         public void setTotalStopped(int tot) {
58                 this.totalStopped = tot;
59         }
60
61         public int getTotalStopped() {
62                 return totalStopped;
63         }
64
65         public void setTotalError(int tot) {
66                 this.totalError = tot;
67         }
68
69         public int getTotalError() {
70                 return totalError;
71         }
72
73         public void setTotalTimeOut(int tot) {
74                 this.totalTimeOut = tot;
75         }
76
77         public int getTotalTimeOut() {
78                 return totalTimeOut;
79         }
80         
81         public void setTotalJobs(int totalJobs) {
82                 this.totalJobs = totalJobs;
83         }
84
85         public int getTotalJobs() {
86                 return totalJobs;
87         }
88
89         public void setTotalId(int totId) {
90                 this.totalId = totId;
91         }
92
93         public int getTotalId() {
94                 return totalId;
95         }
96
97         public void setProt(String prot) {
98                 this.prot = prot;
99         }
100
101         public String getProt() {
102                 return prot;
103         }
104
105         public void setJpred(String jpred) {
106                 this.jpred = jpred;
107         }
108
109         public String getJpred() {
110                 return jpred;
111         }
112
113         public void setId(String id) {
114                 this.id = id;
115         }
116
117         public String getId() {
118                 return id;
119         }
120         
121         public void setIp(String ip) {
122                 this.ip = ip;
123         }
124
125         public String getIp() {
126                 return ip;
127         }
128
129         public void setSubProt(List<String> subProt) {
130                 this.subProt = subProt;
131         }
132
133         public List<String> getSubProt() {
134                 return subProt;
135         }
136
137         public void setTimeRez(List<Integer> timeRez) {
138                 this.timeRez = timeRez;
139         }
140
141         public List<Integer> getTimeRez() {
142                 return timeRez;
143         }
144         
145         public void setTimeTotalExec(List<Integer> timeTotalExec) {
146                 this.timeTotalExec = timeTotalExec;
147         }
148
149         public List<Integer> getTimeTotalExec() {
150                 return timeTotalExec;
151         }
152         
153         public void setLogInfo(StructureJobLog logInfo){
154                 this.logInfo = logInfo;
155         }
156         
157         public StructureJobLog getLogInfo() {
158                 return logInfo;
159         }
160         
161         public void setPredictions(AnnotatedProteinSequenceBean predictions){
162                 this.predictions = predictions;
163         }
164         
165         public AnnotatedProteinSequenceBean getPredictions() {
166                 return predictions;
167         }
168
169 }