jobStatus.setType(Type.VHM);
} else if (jobName.equals(JobConstants.DELETE_CLUSTER_JOB_NAME)) {
jobStatus.setType(Type.DELETE);
}
JobParameters jobParameters =
jobExecution.getJobInstance().getJobParameters();
String clusterName =
jobParameters.getString(JobConstants.CLUSTER_NAME_JOB_PARAM);
jobStatus.setTarget(clusterName);
long subJobEnabled = jobParameters.getLong(JobConstants.SUB_JOB_ENABLED);
if (subJobEnabled != 1) {
jobStatus.setProgress(jobExecutionStatusHolder
.getCurrentProgress(jobExecutionId));
} else {
jobStatus.setProgress(mainJobExecutionStatusHolder