1 package compbio.cassandra;
5 import compbio.beans.JobBean;
6 import compbio.beans.ProteinBean;
8 public class DataBase {
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
19 private String prot; // protein sequence
21 private List<Integer> timeRez;
22 private List<Integer> timeTotalExec;
23 private JobBean logInfo;
24 private ProteinBean predictions;
29 public DataBase(String dat, int total) {
34 public void setDate(String dat) {
38 public String getDate() {
44 public void setTotal(int tot) {
48 public int getTotal() {
52 public void setTotalOK(int tot) {
56 public int getTotalOK() {
60 public void setTotalStopped(int tot) {
61 this.totalStopped = tot;
64 public int getTotalStopped() {
68 public void setTotalError(int tot) {
69 this.totalError = tot;
72 public int getTotalError() {
76 public void setTotalTimeOut(int tot) {
77 this.totalTimeOut = tot;
80 public int getTotalTimeOut() {
84 public void setTotalJobs(int totalJobs) {
85 this.totalJobs = totalJobs;
88 public int getTotalJobs() {
92 public void setTotalId(int totId) {
96 public int getTotalId() {
100 public void setProt(String prot) {
104 public String getProt() {
108 public void setJpred(String jpred) {
112 public String getJpred() {
116 public void setId(String id) {
120 public String getId() {
124 public void setIp(String ip) {
128 public String getIp() {
132 public void setTimeRez(List<Integer> timeRez) {
133 this.timeRez = timeRez;
136 public List<Integer> getTimeRez() {
140 public void setTimeTotalExec(List<Integer> timeTotalExec) {
141 this.timeTotalExec = timeTotalExec;
144 public List<Integer> getTimeTotalExec() {
145 return timeTotalExec;
148 public void setLogInfo(JobBean logInfo) {
149 this.logInfo = logInfo;
152 public JobBean getLogInfo() {
156 public void setPredictions(ProteinBean predictions) {
157 this.predictions = predictions;
160 public ProteinBean getPredictions() {