public class StepConfig extends Object implements Serializable, Cloneable
Specification of a job flow step.
Constructor and Description |
---|
StepConfig()
Default constructor for StepConfig object.
|
StepConfig(String name,
HadoopJarStepConfig hadoopJarStep)
Constructs a new StepConfig object.
|
Modifier and Type | Method and Description |
---|---|
StepConfig |
clone() |
boolean |
equals(Object obj) |
String |
getActionOnFailure()
The action to take if the job flow step fails.
|
HadoopJarStepConfig |
getHadoopJarStep()
The JAR file used for the job flow step.
|
String |
getName()
The name of the job flow step.
|
int |
hashCode() |
void |
setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take if the job flow step fails.
|
void |
setActionOnFailure(String actionOnFailure)
The action to take if the job flow step fails.
|
void |
setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the job flow step.
|
void |
setName(String name)
The name of the job flow step.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StepConfig |
withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take if the job flow step fails.
|
StepConfig |
withActionOnFailure(String actionOnFailure)
The action to take if the job flow step fails.
|
StepConfig |
withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the job flow step.
|
StepConfig |
withName(String name)
The name of the job flow step.
|
public StepConfig()
public StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
name
- The name of the job flow step.hadoopJarStep
- The JAR file used for the job flow step.public void setName(String name)
The name of the job flow step.
name
- The name of the job flow step.public String getName()
The name of the job flow step.
public StepConfig withName(String name)
The name of the job flow step.
name
- The name of the job flow step.public void setActionOnFailure(String actionOnFailure)
The action to take if the job flow step fails.
actionOnFailure
- The action to take if the job flow step fails.ActionOnFailure
public String getActionOnFailure()
The action to take if the job flow step fails.
ActionOnFailure
public StepConfig withActionOnFailure(String actionOnFailure)
The action to take if the job flow step fails.
actionOnFailure
- The action to take if the job flow step fails.ActionOnFailure
public void setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take if the job flow step fails.
actionOnFailure
- The action to take if the job flow step fails.ActionOnFailure
public StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take if the job flow step fails.
actionOnFailure
- The action to take if the job flow step fails.ActionOnFailure
public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the job flow step.
hadoopJarStep
- The JAR file used for the job flow step.public HadoopJarStepConfig getHadoopJarStep()
The JAR file used for the job flow step.
public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the job flow step.
hadoopJarStep
- The JAR file used for the job flow step.public String toString()
toString
in class Object
Object.toString()
public StepConfig clone()
Copyright © 2016. All rights reserved.