@Override protected void invokePostStepArtifacts() { // Invoke the reducer after all parallel steps are done if (this.partitionReducerProxy != null) { if ((BatchStatus.COMPLETED).equals(stepContext.getBatchStatus())) { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.COMMIT); }else { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.ROLLBACK); } } // Called in spec'd order, e.g. Sec. 11.7 if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call afterStep on all the step listeners listenerProxy.afterStep(); } } }
/** * Invoke the StepListeners and PartitionReducer. */ @Override protected void invokePostStepArtifacts() { // Invoke the reducer after all parallel steps are done if (this.partitionReducerProxy != null) { if ((BatchStatus.COMPLETED).equals(runtimeStepExecution.getBatchStatus())) { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.COMMIT); } else { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.ROLLBACK); } } // Called in spec'd order, e.g. Sec. 11.7 if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call afterStep on all the step listeners listenerProxy.afterStep(); } } }
@Override protected void invokePostStepArtifacts() { // Invoke the reducer after all parallel steps are done if (this.partitionReducerProxy != null) { if ((BatchStatus.COMPLETED).equals(stepContext.getBatchStatus())) { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.COMMIT); }else { this.partitionReducerProxy.afterPartitionedStepCompletion(PartitionStatus.ROLLBACK); } } // Called in spec'd order, e.g. Sec. 11.7 if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call afterStep on all the step listeners listenerProxy.afterStep(); } } }