fixed Execution time report
[proteocache.git] / datadb / compbio / beans / TotalExecutionTime.java
diff --git a/datadb/compbio/beans/TotalExecutionTime.java b/datadb/compbio/beans/TotalExecutionTime.java
new file mode 100644 (file)
index 0000000..6de9d97
--- /dev/null
@@ -0,0 +1,83 @@
+package compbio.beans;
+
+       /**
+        * bean is stored Total for a ExecutionTimeBean.
+        * 
+        * @param total
+        *            total number of jobs for a day
+        * @param total0_30s
+        *            number of jobs with execution time 0 - 30 s for a date
+        * @param total30_60s
+        *            number of jobs with execution time 30 - 60 s for a date
+        * @param total1_2m
+        *            number of jobs with execution time 1-2 min for a date
+        * @param total2_10m
+        *            number of jobs with execution time 2 - 10 min for a date
+        * @param total10m
+        *            number of jobs with execution time more then 10 min for a date
+        */
+       public class TotalExecutionTime {
+               private long total;
+               private long total0_30s;
+               private long total30_60s;
+               private long total1_2m;
+               private long total2_10m;
+               private long total10m;
+
+               public TotalExecutionTime(long total, long total0_30s, long total30_60s, long total1_2m, long total2_10m,  long total10m) {
+                       this.total = total;
+                       this.total0_30s = total0_30s;
+                       this.total30_60s = total30_60s;
+                       this.total1_2m = total1_2m;
+                       this.total2_10m = total2_10m;
+                       this.total10m = total10m;
+               }
+
+               public void setTotal(long tot) {
+                       this.total = tot;
+               }
+
+               public long getTotal() {
+                       return total;
+               }
+
+               public void setTotal0_30s(long tot) {
+                       this.total0_30s = tot;
+               }
+
+               public long getTotal0_30s() {
+                       return total0_30s;
+               }
+
+               public void setTotal30_60s(long tot) {
+                       this.total30_60s = tot;
+               }
+
+               public long getTotal30_60s() {
+                       return total30_60s;
+               }
+
+               public void setTotal1_2m(long tot) {
+                       this.total1_2m = tot;
+               }
+
+               public long getTotal1_2m() {
+                       return total1_2m;
+               }
+
+               public void setTotal2_10m(long tot) {
+                       this.total2_10m = tot;
+               }
+
+               public long getTotal2_10m() {
+                       return total2_10m;
+               }
+       
+               public void setTotal10m(long tot) {
+                       this.total10m = tot;
+               }
+
+               public long getTotal10m() {
+                       return total10m;
+               }
+}