import compbio.cassandra.readers.CassandraReader;
import compbio.cassandra.readers.DailyStatisticsReader;
-
/**
* @author Alexander Sherstnev
* @author Natasha Sherstneva
public class DailyStatisticsController extends BasicController {
/**
- * form a query page for daily job statistics. The servlet should be
- * available for users and admins only. By defaults the report time range is
- * from the earliest day with jobs to today ("Query for all dates" is
- * ticked). If the user removes the tick the time range is from today - 3
- * days to today. Currently, the input model is empty.
+ * form a query page for daily job statistics.
+ *
+ * The servlet should be available for users and admins only. By defaults
+ * the report time range is from the earliest day with jobs to current date
+ * ("Query for all dates" is ticked). If the user removes the tick the time
+ * range is from today - 3 days to today. Currently, the input model is
+ * empty.
*
* @param model
* MVC model
final long endTime = System.currentTimeMillis();
model.put("timeExecution", (endTime - startTime));
model.put("option", option);
- return "/reportJobStatistics";
+ return "reports/JobStatistics";
}
/**
realdate = date;
thetime = formaterDDMMYY.parse(realdate).getTime();
}
-
- if (null == JobStatus.getJobStatus(status)) {
+
+ if (null == JobStatus.getJobStatus(status))
return "support/Notimplemented";
- }
+
DailyStatisticsReader reader = new DailyStatisticsReader();
// IMPORTANT: input should be suppied in the format: DD/MM/YYYY
model.put("status", status);
final long endTime = System.currentTimeMillis();
model.put("timeExecution", (endTime - startTime));
- return "/reportJobStatisticsOneDay";
+ return "reports/JobStatisticsOneDay";
}
}