add Logger to the class
authorSasha <asherstnev@main-laptop2>
Wed, 24 Apr 2013 16:02:44 +0000 (17:02 +0100)
committerSasha <asherstnev@main-laptop2>
Wed, 24 Apr 2013 16:02:44 +0000 (17:02 +0100)
webservices/compbio/stat/servlet/util/StatCollection.java

index b53fca7..88d96bb 100644 (file)
@@ -25,8 +25,11 @@ import java.util.GregorianCalendar;
 import java.util.Map;\r
 import java.util.TreeMap;\r
 \r
+import org.apache.log4j.Logger;\r
+\r
 import compbio.stat.collector.StatDB;\r
 import compbio.stat.collector.StatProcessor;\r
+import compbio.stat.servlet.DisplayStat;\r
 import compbio.ws.client.Services;\r
 \r
 public class StatCollection {\r
@@ -47,6 +50,8 @@ public class StatCollection {
        private Map<Services, StatProcessor> allStat;\r
        private Map<Services, StatProcessor> clusterStat;\r
        private Map<Services, StatProcessor> localStat;\r
+       \r
+       private final static Logger log = Logger.getLogger(StatCollection.class);\r
 \r
        public Map<Services, StatProcessor> getAllStat() {\r
                return allStat;\r
@@ -94,6 +99,8 @@ public class StatCollection {
                t.incomplete = db.getIncompleteCount(fromTime, toTime);\r
                t.abandoned = db.getAbandonedCount(fromTime, toTime);\r
                t.cancelled = db.getCancelledCount(fromTime, toTime);\r
+               log.trace("Job counts: total = " + t.total + ", incomplete = " + \r
+               t.incomplete + ", abandoned = " + t.abandoned + ", cancelled = " + t.cancelled );\r
                return t;\r
        }\r
 \r