@Path("/tasklocality")
public TaskLocalityData getTaskLocalitySummary(@QueryParam("jobId") String jobId, @DefaultValue("4") @QueryParam("minr") int minr,
@DefaultValue("24") @QueryParam("maxr") int maxr, @QueryParam("workflowId") String workflowId) {
if (maxr < minr)
maxr = minr;
TaskLocalityData data = new TaskLocalityData();
PostgresConnector conn = null;
try {
conn = getConnector();
if (jobId != null) {
long[] times = conn.fetchJobStartStopTimes(jobId);