Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class StepConfig

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.StepConfig
All Implemented Interfaces:
Serializable

public class StepConfig
extends Object
implements Serializable

Specification of a job flow step.

See Also:
Serialized Form

Constructor Summary
StepConfig()
          Default constructor for a new StepConfig object.
StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
          Constructs a new StepConfig object.
 
Method Summary
 boolean equals(Object obj)
           
 String getActionOnFailure()
          Specifies the action to take if the job flow step fails.
 HadoopJarStepConfig getHadoopJarStep()
          Specifies the JAR file used for the job flow step.
 String getName()
          The name of the job flow step.
 int hashCode()
           
 void setActionOnFailure(ActionOnFailure actionOnFailure)
          Specifies the action to take if the job flow step fails.
 void setActionOnFailure(String actionOnFailure)
          Specifies the action to take if the job flow step fails.
 void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
          Specifies 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)
          Specifies the action to take if the job flow step fails.
 StepConfig withActionOnFailure(String actionOnFailure)
          Specifies the action to take if the job flow step fails.
 StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
          Specifies the JAR file used for the job flow step.
 StepConfig withName(String name)
          The name of the job flow step.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepConfig

public StepConfig()
Default constructor for a new StepConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


StepConfig

public StepConfig(String name,
                  HadoopJarStepConfig hadoopJarStep)
Constructs a new StepConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name - The name of the job flow step.
hadoopJarStep - Specifies the JAR file used for the job flow step.
Method Detail

getName

public String getName()
The name of the job flow step.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of the job flow step.

setName

public void setName(String name)
The name of the job flow step.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
name - The name of the job flow step.

withName

public StepConfig withName(String name)
The name of the job flow step.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
name - The name of the job flow step.
Returns:
A reference to this updated object so that method calls can be chained together.

getActionOnFailure

public String getActionOnFailure()
Specifies the action to take if the job flow step fails.

Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE

Returns:
Specifies the action to take if the job flow step fails.
See Also:
ActionOnFailure

setActionOnFailure

public void setActionOnFailure(String actionOnFailure)
Specifies the action to take if the job flow step fails.

Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE

Parameters:
actionOnFailure - Specifies the action to take if the job flow step fails.
See Also:
ActionOnFailure

withActionOnFailure

public StepConfig withActionOnFailure(String actionOnFailure)
Specifies the action to take if the job flow step fails.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE

Parameters:
actionOnFailure - Specifies the action to take if the job flow step fails.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ActionOnFailure

setActionOnFailure

public void setActionOnFailure(ActionOnFailure actionOnFailure)
Specifies the action to take if the job flow step fails.

Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE

Parameters:
actionOnFailure - Specifies the action to take if the job flow step fails.
See Also:
ActionOnFailure

withActionOnFailure

public StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)
Specifies the action to take if the job flow step fails.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE

Parameters:
actionOnFailure - Specifies the action to take if the job flow step fails.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ActionOnFailure

getHadoopJarStep

public HadoopJarStepConfig getHadoopJarStep()
Specifies the JAR file used for the job flow step.

Returns:
Specifies the JAR file used for the job flow step.

setHadoopJarStep

public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
Specifies the JAR file used for the job flow step.

Parameters:
hadoopJarStep - Specifies the JAR file used for the job flow step.

withHadoopJarStep

public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
Specifies the JAR file used for the job flow step.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hadoopJarStep - Specifies the JAR file used for the job flow step.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.