From e7dbdaf39ceadf409ad1034e3e733ecd48a6e214 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Fri, 29 Nov 2013 16:52:31 +0000 Subject: [PATCH] Fix problem with the bean --- datadb/compbio/cassandra/DataBase.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/datadb/compbio/cassandra/DataBase.java b/datadb/compbio/cassandra/DataBase.java index 26a019a..2f10eef 100644 --- a/datadb/compbio/cassandra/DataBase.java +++ b/datadb/compbio/cassandra/DataBase.java @@ -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 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; } -- 1.7.10.2