public JobInstances findHungJobs(List<String> liveAgentIdList) { String sqlValue = SqlUtil.joinWithQuotesForSql(liveAgentIdList.toArray()); List<JobInstance> list = getSqlMapClientTemplate() .queryForList("getHungJobs", arguments("liveAgentIdList", sqlValue).asMap()); return new JobInstances(list); }
public int getNumberOfActiveBuildsOnRemoteAgent(List<String> localAgentIds) { String sqlValue = SqlUtil.joinWithQuotesForSql(localAgentIds.toArray()); Integer count = (Integer) getSqlMapClientTemplate() .queryForObject( "getNumberOfActiveBuildsOnRemoteAgent", arguments("localAgentIds", sqlValue).asMap()); return count; }