+/* Copyright (c) 2011 Peter Troshin\r
+ * \r
+ * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0 \r
+ * \r
+ * This library is free software; you can redistribute it and/or modify it under the terms of the\r
+ * Apache License version 2 as published by the Apache Software Foundation\r
+ * \r
+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
+ * License for more details.\r
+ * \r
+ * A copy of the license is in apache_license.txt. It is also available here:\r
+ * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
+ * \r
+ * Any republication or derived work distributed in source code form\r
+ * must include this copyright and license notice.\r
+ */\r
package compbio.stat.collector;\r
\r
import java.sql.Timestamp;\r
+import java.text.DateFormat;\r
import java.text.SimpleDateFormat;\r
import java.util.Comparator;\r
import java.util.Date;\r
+import java.util.Locale;\r
\r
import compbio.engine.client.ConfExecutable;\r
import compbio.util.Util;\r
}\r
};\r
\r
+ private static DateFormat DATE_TIME = SimpleDateFormat.getDateTimeInstance(\r
+ DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.UK);\r
+\r
Services webService;\r
String clusterJobId;\r
String jobname;\r
\r
public String getStart() {\r
if (start != ExecutionStatCollector.UNDEFINED) {\r
- return SimpleDateFormat.getDateTimeInstance().format(\r
- new Date(start));\r
+ return DATE_TIME.format(new Date(start));\r
}\r
return "?";\r
}\r
\r
public String getFinish() {\r
if (finish != ExecutionStatCollector.UNDEFINED) {\r
- return SimpleDateFormat.getDateTimeInstance().format(\r
- new Date(finish));\r
+ return DATE_TIME.format(new Date(finish));\r
}\r
return "?";\r
}\r
\r
public long getInputSize() {\r
if (inputSize != ExecutionStatCollector.UNDEFINED) {\r
- return inputSize / 1000;\r
+ return inputSize;\r
}\r
return 0;\r
}\r
\r
public long getResultSize() {\r
if (resultSize > 0) {\r
- return resultSize / 1000;\r
+ return resultSize;\r
}\r
return 0;\r
}\r