*/
private DetailedJobInfo getJobInfo(String jobName, boolean deployed) {
boolean launchable = jobService.isLaunchable(jobName);
try {
int count = jobService.countJobExecutionsForJob(jobName);
return new DetailedJobInfo(jobName, count, launchable,
jobService.isIncrementable(jobName),
getLastExecution(jobName), deployed);
}
catch (NoSuchJobException e) {
throw new NoSuchBatchJobException(jobName);