latch.countDown();
}
}
});
batchAppmaster.addPartitionedStepExecutionStateListener(new PartitionedStepExecutionStateListener() {
@Override
public void state(PartitionedStepExecutionState state, StepExecution stepExecution) {
log.info("PartitionedStepExecutionStateListener state=[" + state + "] stepExecution=[" + stepExecution
+ "] masterStepExecution=[" + masterStepExecution + "]");
if(state == PartitionedStepExecutionState.COMPLETED && masterStepExecution.equals(stepExecution)) {