Merge branch 'servlets' of https://source.jalview.org/git/proteocache into servlets
[proteocache.git] / datadb / compbio / cassandra / Total.java
diff --git a/datadb/compbio/cassandra/Total.java b/datadb/compbio/cassandra/Total.java
new file mode 100644 (file)
index 0000000..75cef1f
--- /dev/null
@@ -0,0 +1,59 @@
+package compbio.cassandra;
+
+public class Total {
+       private long total;                                     // total number of jobs
+       private long totalOK;                           // number of jobs with execution status OK
+       private long totalStopped;                       // number of jobs with execution status STOPPED
+       private long totalError;                                // number of jobs with execution status Jpred ERROR
+       private long totalTimeOut;                      // number of jobs with execution status TIMEOUT
+       
+       public Total() {}
+       
+       public Total(long total, long totalOK, long totalStopped, long totalError, long totalTimeOut) {
+               this.total = total;
+               this.totalOK = totalOK;
+               this.totalStopped = totalStopped;
+               this.totalError = totalError;
+               this.totalTimeOut = totalTimeOut;
+       }
+       
+       public void setTotal(long tot) {
+               this.total = tot;
+       }
+
+       public long getTotal() {
+               return total;
+       }
+
+       public void setTotalOK(long tot) {
+               this.totalOK = tot;
+       }
+
+       public long getTotalOK() {
+               return totalOK;
+       }
+
+       public void setTotalStopped(long tot) {
+               this.totalStopped = tot;
+       }
+
+       public long getTotalStopped() {
+               return totalStopped;
+       }
+
+       public void setTotalError(long tot) {
+               this.totalError = tot;
+       }
+
+       public long getTotalError() {
+               return totalError;
+       }
+
+       public void setTotalTimeOut(long tot) {
+               this.totalTimeOut = tot;
+       }
+
+       public long getTotalTimeOut() {
+               return totalTimeOut;
+       }
+}