Пример #1
0
 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);
 }
Пример #2
0
 public int getNumberOfActiveBuildsOnRemoteAgent(List<String> localAgentIds) {
   String sqlValue = SqlUtil.joinWithQuotesForSql(localAgentIds.toArray());
   Integer count =
       (Integer)
           getSqlMapClientTemplate()
               .queryForObject(
                   "getNumberOfActiveBuildsOnRemoteAgent",
                   arguments("localAgentIds", sqlValue).asMap());
   return count;
 }