/** * <p> * The name of the step. * </p> * * @param name * The name of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepConfig withName(String name) { setName(name); return this; }
/** * Constructs a new StepConfig object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name * The name of the step. * @param hadoopJarStep * The JAR file used for the step. */ public StepConfig(String name, HadoopJarStepConfig hadoopJarStep) { setName(name); setHadoopJarStep(hadoopJarStep); }
if (context.testExpression("Name", targetDepth)) { context.nextToken(); stepConfig.setName(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the step. * </p> * * @param name * The name of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepConfig withName(String name) { setName(name); return this; }
/** * Constructs a new StepConfig object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name * The name of the step. * @param hadoopJarStep * The JAR file used for the step. */ public StepConfig(String name, HadoopJarStepConfig hadoopJarStep) { setName(name); setHadoopJarStep(hadoopJarStep); }
private StepConfig initHadoopStep( String jarUrl, String mainClass, List<String> jarStepArgs ) { StepConfig stepConfig = new StepConfig(); stepConfig.setName( "custom jar: " + jarUrl ); stepConfig.setHadoopJarStep( configureHadoopStep( jarUrl, mainClass, jarStepArgs ) ); if ( this.alive ) { stepConfig.withActionOnFailure( ActionOnFailure.CANCEL_AND_WAIT ); } else { stepConfig.withActionOnFailure( ActionOnFailure.TERMINATE_JOB_FLOW ); } return stepConfig; }
if (context.testExpression("Name", targetDepth)) { context.nextToken(); stepConfig.setName(context.getUnmarshaller(String.class).unmarshall(context));