public static PartitionReducerProxy createPartitionReducerProxy(String id, InjectionReferences injectionRefs, RuntimeStepExecution stepContext) throws ArtifactValidationException { PartitionReducer loadedArtifact = (PartitionReducer)loadArtifact(id, injectionRefs); PartitionReducerProxy proxy = new PartitionReducerProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
/** * If rollback is false we never issued a rollback so we can issue a logicalTXSynchronizationBeforeCompletion * NOTE: this will get issued even in a subjob fails or stops if no logicalTXSynchronizationRollback method is provied * We are assuming that not providing a rollback was intentional * */ private void rollbackPartitionedStep() { if (this.partitionReducerProxy != null) { this.partitionReducerProxy.rollbackPartitionedStep(); } }
this.partitionReducerProxy.rollbackPartitionedStep(); this.partitionReducerProxy.beforePartitionedStepCompletion();
/** * Invoke the StepListeners and PartitionReducer. */ @Override protected void invokePreStepArtifacts() { if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call beforeStep on all the step listeners listenerProxy.beforeStep(); } } // Invoke the reducer before all parallel steps start (must occur // before mapper as well) if (this.partitionReducerProxy != null) { this.partitionReducerProxy.beginPartitionedStep(); } }
/** * 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(); } } }
this.partitionReducerProxy.beforePartitionedStepCompletion();
this.partitionReducerProxy.rollbackPartitionedStep(); this.partitionReducerProxy.beforePartitionedStepCompletion();
@Override protected void invokePreStepArtifacts() { if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call beforeStep on all the step listeners listenerProxy.beforeStep(); } } // Invoke the reducer before all parallel steps start (must occur // before mapper as well) if (this.partitionReducerProxy != null) { this.partitionReducerProxy.beginPartitionedStep(); } }
@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(); } } }
public static PartitionReducerProxy createPartitionReducerProxy(String id, InjectionReferences injectionRefs, StepContextImpl stepContext) throws ArtifactValidationException { PartitionReducer loadedArtifact = (PartitionReducer)loadArtifact(id, injectionRefs); PartitionReducerProxy proxy = new PartitionReducerProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
private void rollbackPartitionedStep() { //If rollback is false we never issued a rollback so we can issue a logicalTXSynchronizationBeforeCompletion //NOTE: this will get issued even in a subjob fails or stops if no logicalTXSynchronizationRollback method is provied //We are assuming that not providing a rollback was intentional if (this.partitionReducerProxy != null) { this.partitionReducerProxy.rollbackPartitionedStep(); } }
@Override protected void invokePreStepArtifacts() { if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call beforeStep on all the step listeners listenerProxy.beforeStep(); } } // Invoke the reducer before all parallel steps start (must occur // before mapper as well) if (this.partitionReducerProxy != null) { this.partitionReducerProxy.beginPartitionedStep(); } }
@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(); } } }
public static PartitionReducerProxy createPartitionReducerProxy(String id, InjectionReferences injectionRefs, StepContextImpl stepContext) throws ArtifactValidationException { PartitionReducer loadedArtifact = (PartitionReducer)loadArtifact(id, injectionRefs); PartitionReducerProxy proxy = new PartitionReducerProxy(loadedArtifact); proxy.setStepContext(stepContext); return proxy; }
this.partitionReducerProxy.rollbackPartitionedStep();