Fix problem with the bean
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 29 Nov 2013 16:52:31 +0000 (16:52 +0000)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 29 Nov 2013 16:52:31 +0000 (16:52 +0000)
datadb/compbio/cassandra/DataBase.java

index 26a019a..2f10eef 100644 (file)
@@ -6,10 +6,10 @@ import java.util.Collections;
 
 public class DataBase {
        private String date;
-       private int total;                              // total number of jobs
-       private int totalOK;                        // number of jobs with execution status OK
-       private int totalStopped;                        // number of jobs with execution status STOPPED
-       private int totalError;                         // number of jobs with execution status Jpred ERROR
+       private int total;                                      // total number of jobs
+       private int totalOK;                            // number of jobs with execution status OK
+       private int totalStopped;                        // number of jobs with execution status STOPPED
+       private int totalError;                         // number of jobs with execution status Jpred ERROR
        private int totalTimeOut;                       // number of jobs with execution status TIMEOUT
        private int totalJobs;
        private int totalId;                            // total jobs for current protein sequence
@@ -22,6 +22,7 @@ public class DataBase {
        private List<Integer> timeTotalExec;
        private StructureJobLog logInfo;
        private AnnotatedProteinSequenceBean predictions;
+
        public DataBase() {
        }
 
@@ -35,6 +36,8 @@ public class DataBase {
        }
 
        public String getDate() {
+               if (null == date)
+                       return "1/1/1970";
                return date;
        }