throw new CommandFailedException (jobId, "No such job");
}
else if (job.getState () == Job.RUNNING) {
try {
job.checkpoint ();
log.fine ("Job has been checkpointed: " + jobId);
}
catch (NotInterruptableException e) {
log.finer ("Checkpoint command failed for job " + jobId + ": Job cannot be interrupted");