+/* 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.servlet;\r
\r
import java.util.concurrent.Executors;\r
executor = Executors.newScheduledThreadPool(2);\r
\r
if (collectClusterStats()) {\r
- // TODO remove work out of the constructor Tomcat takes ages to\r
- // start!\r
+\r
ExecutionStatCollector clusterCollector = new ExecutionStatCollector(\r
clusterWorkDir, clusterMaxRuntime);\r
clustercf = executor.scheduleAtFixedRate(clusterCollector, 60,\r
} else {\r
log.info("Local statistics collector is disabled or not configured! ");\r
}\r
-\r
}\r
\r
static String getClusterJobDir() {\r