/** * <p> * A list of <a>StepConfig</a> to be executed by the job flow. * </p> * * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withSteps(java.util.Collection<StepConfig> steps) { setSteps(steps); return this; }
/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. */ public AddJobFlowStepsRequest(String jobFlowId, java.util.List<StepConfig> steps) { setJobFlowId(jobFlowId); setSteps(steps); }
/** * <p> * A list of <a>StepConfig</a> to be executed by the job flow. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSteps(java.util.Collection)} or {@link #withSteps(java.util.Collection)} if you want to override the * existing values. * </p> * * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withSteps(StepConfig... steps) { if (this.steps == null) { setSteps(new com.amazonaws.internal.SdkInternalList<StepConfig>(steps.length)); } for (StepConfig ele : steps) { this.steps.add(ele); } return this; }
/** * <p> * A list of <a>StepConfig</a> to be executed by the job flow. * </p> * * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withSteps(java.util.Collection<StepConfig> steps) { setSteps(steps); return this; }
/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. */ public AddJobFlowStepsRequest(String jobFlowId, java.util.List<StepConfig> steps) { setJobFlowId(jobFlowId); setSteps(steps); }
/** * <p> * A list of <a>StepConfig</a> to be executed by the job flow. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSteps(java.util.Collection)} or {@link #withSteps(java.util.Collection)} if you want to override the * existing values. * </p> * * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withSteps(StepConfig... steps) { if (this.steps == null) { setSteps(new com.amazonaws.internal.SdkInternalList<StepConfig>(steps.length)); } for (StepConfig ele : steps) { this.steps.add(ele); } return this; }
@Override public void addStepToExistingJobFlow( String stagingS3FileUrl, String stagingS3BucketUrl, String stepType, String mainClass, AbstractAmazonJobEntry jobEntry ) { this.alive = jobEntry.getAlive(); this.hadoopJobFlowId = jobEntry.getHadoopJobFlowId(); setStepsFromCluster(); List<StepConfig> steps = initSteps( stagingS3FileUrl, stepType, mainClass, jobEntry ); AddJobFlowStepsRequest addJobFlowStepsRequest = new AddJobFlowStepsRequest(); addJobFlowStepsRequest.setJobFlowId( hadoopJobFlowId ); addJobFlowStepsRequest.setSteps( steps ); emrClient.addJobFlowSteps( addJobFlowStepsRequest ); stepId = getSpecifiedRunningStep(); }