@Override
public List<JobInstance> findJobInstancesByJobName(String jobName, int start, int count) {
List<JobInstance> jobInstances = new ArrayList<JobInstance>();
try {
FindJobInstancesByJobNameReq request = JobRepositoryRpcFactory.buildFindJobInstancesByJobNameReq(jobName, start, count);
FindJobInstancesByJobNameRes response = (FindJobInstancesByJobNameRes) getAppmasterScOperations().doMindRequest(request);
for (JobInstanceType j : response.jobInstances) {
jobInstances.add(JobRepositoryRpcFactory.convertJobInstanceType(j));
}
} catch (Exception e) {