public class StepConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specification of a job flow step.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
actionOnFailure
The action to take if the job flow step fails.
|
private HadoopJarStepConfig |
hadoopJarStep
The JAR file used for the job flow step.
|
private java.lang.String |
name
The name of the job flow step.
|
Constructor and Description |
---|
StepConfig()
Default constructor for StepConfig object.
|
StepConfig(java.lang.String name,
HadoopJarStepConfig hadoopJarStep)
Constructs a new StepConfig object.
|
Modifier and Type | Method and Description |
---|---|
StepConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionOnFailure()
The action to take if the job flow step fails.
|
HadoopJarStepConfig |
getHadoopJarStep()
The JAR file used for the job flow step.
|
java.lang.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(java.lang.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(java.lang.String name)
The name of the job flow step.
|
java.lang.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(java.lang.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(java.lang.String name)
The name of the job flow step.
|
private java.lang.String name
The name of the job flow step.
private java.lang.String actionOnFailure
The action to take if the job flow step fails.
private HadoopJarStepConfig hadoopJarStep
The JAR file used for the job flow step.
public StepConfig()
public StepConfig(java.lang.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(java.lang.String name)
The name of the job flow step.
name
- The name of the job flow step.public java.lang.String getName()
The name of the job flow step.
public StepConfig withName(java.lang.String name)
The name of the job flow step.
name
- The name of the job flow step.public void setActionOnFailure(java.lang.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 java.lang.String getActionOnFailure()
The action to take if the job flow step fails.
ActionOnFailure
public StepConfig withActionOnFailure(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StepConfig clone()
clone
in class java.lang.Object