@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StepConfig extends Object implements Serializable, Cloneable, StructuredPojo
Specification for a cluster (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 when the step fails.
|
HadoopJarStepConfig |
getHadoopJarStep()
The JAR file used for the step.
|
String |
getName()
The name of the step.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the step fails.
|
void |
setActionOnFailure(String actionOnFailure)
The action to take when the step fails.
|
void |
setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
|
void |
setName(String name)
The name of the step.
|
String |
toString()
Returns a string representation of this object.
|
StepConfig |
withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the step fails.
|
StepConfig |
withActionOnFailure(String actionOnFailure)
The action to take when the step fails.
|
StepConfig |
withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
|
StepConfig |
withName(String name)
The name of the step.
|
public StepConfig()
public StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
name
- The name of the step.hadoopJarStep
- The JAR file used for the step.public void setName(String name)
The name of the step.
name
- The name of the step.public String getName()
The name of the step.
public StepConfig withName(String name)
The name of the step.
name
- The name of the step.public void setActionOnFailure(String actionOnFailure)
The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the
ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with
this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a
step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
actionOnFailure
- The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the
WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running,
the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that
fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not
canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster
does not terminate.
ActionOnFailure
public String getActionOnFailure()
The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the
ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with
this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a
step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the
WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running,
the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that
fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not
canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster
does not terminate.
ActionOnFailure
public StepConfig withActionOnFailure(String actionOnFailure)
The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the
ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with
this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a
step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
actionOnFailure
- The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the
WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running,
the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that
fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not
canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster
does not terminate.
ActionOnFailure
public void setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the
ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with
this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a
step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
actionOnFailure
- The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the
WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running,
the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that
fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not
canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster
does not terminate.
ActionOnFailure
public StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the
ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with
this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a
step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
actionOnFailure
- The action to take when the step fails. Use one of the following values:
TERMINATE_CLUSTER
- Shuts down the cluster.
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to the
WAITING
state.
CONTINUE
- Continues to the next step in the queue.
TERMINATE_JOB_FLOW
- Shuts down the cluster. TERMINATE_JOB_FLOW
is provided for
backward compatibility. We recommend using TERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use
AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or
TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the
ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running,
the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that
fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not
canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster
does not terminate.
ActionOnFailure
public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
hadoopJarStep
- The JAR file used for the step.public HadoopJarStepConfig getHadoopJarStep()
The JAR file used for the step.
public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
hadoopJarStep
- The JAR file used for the step.public String toString()
toString
in class Object
Object.toString()
public StepConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.