return ((System.currentTimeMillis() - jd.jobdir.lastModified()) / (1000 * 60 * 60)) > timeOutInHours;\r
}\r
\r
+ /* Make sure that collectStatistics methods was called prior to calling this! \r
+ * TODO consider running collectStatistics from here on the first call \r
+ */\r
StatProcessor getStats() {\r
+ if(stats.isEmpty()) {\r
+ log.info("Please make sure collectStatistics method was called prior to calling getStats()!");\r
+ }\r
return new StatProcessor(stats);\r
}\r
\r
}\r
}\r
\r
- private void collectStatistics() {\r
+ void collectStatistics() {\r
File[] files = workDirectory.listFiles(directories);\r
for (File file : files) {\r
JobDirectory jd = new JobDirectory(file);\r