@Override public String getExitStatus() { if (stepContext != null){ return this.stepContext.getExitStatus(); } else { return exitStatus; } }
@Override public String getExitStatus() { if (stepContext != null){ return this.stepContext.getExitStatus(); } else { return exitStatus; } }
private void defaultExitStatusIfNecessary() { String stepExitStatus = stepContext.getExitStatus(); String processRetVal = stepContext.getBatchletProcessRetVal(); if (stepExitStatus != null) { logger.fine("Returning with user-set exit status: " + stepExitStatus); } else if (processRetVal != null) { logger.fine("Returning with exit status from batchlet.process(): " + processRetVal); stepContext.setExitStatus(processRetVal); } else { logger.fine("Returning with default exit status"); stepContext.setExitStatus(stepContext.getBatchStatus().name()); } }
private void defaultExitStatusIfNecessary() { String stepExitStatus = stepContext.getExitStatus(); String processRetVal = stepContext.getBatchletProcessRetVal(); if (stepExitStatus != null) { logger.fine("Returning with user-set exit status: " + stepExitStatus); } else if (processRetVal != null) { logger.fine("Returning with exit status from batchlet.process(): " + processRetVal); stepContext.setExitStatus(processRetVal); } else { logger.fine("Returning with default exit status"); stepContext.setExitStatus(stepContext.getBatchStatus().name()); } }
protected void persistExitStatusAndEndTimestamp() { stepStatus.setExitStatus(stepContext.getExitStatus()); _jobStatusService.updateStepStatus(stepStatus.getStepExecutionId(), stepStatus); // set the end time metric before flushing long time = System.currentTimeMillis(); Timestamp endTS = new Timestamp(time); stepContext.setEndTime(endTS); _persistenceManagementService.updateStepExecution(rootJobExecutionId, stepContext); }
protected void persistExitStatusEndTimestampAndStepExecution() { stepStatus.setExitStatus(stepContext.getExitStatus()); _jobStatusService.updateStepStatus(stepStatus.getStepExecutionId(), stepStatus); // set the end time metric before flushing long time = System.currentTimeMillis(); Timestamp endTS = new Timestamp(time); stepContext.setEndTime(endTS); persistStepExecution(); }
String exitStatus = stepContext.getExitStatus(); String stepName = stepContext.getStepName(); if (logger.isLoggable(Level.FINE)) {
StepExecutionImpl stepExecution = null; String batchStatus = stepContext.getBatchStatus() == null ? BatchStatus.STARTING.name() : stepContext.getBatchStatus().name(); String exitStatus = stepContext.getExitStatus(); String stepName = stepContext.getStepName(); if (logger.isLoggable(Level.FINE)) {
StepExecutionImpl stepExecution = null; String batchStatus = stepContext.getBatchStatus() == null ? BatchStatus.STARTING.name() : stepContext.getBatchStatus().name(); String exitStatus = stepContext.getExitStatus(); String stepName = stepContext.getStepName();
long stepExecutionId = stepContext.getStepExecutionId(); String batchStatus = stepContext.getBatchStatus() == null ? BatchStatus.STARTING.name() : stepContext.getBatchStatus().name(); String exitStatus = stepContext.getExitStatus(); String stepName = stepContext.getStepName();