public class Step
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This represents a step in a cluster.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
actionOnFailure
This specifies what action to take when the cluster step fails.
|
private HadoopStepConfig |
config
The Hadoop job configuration of the cluster step.
|
private java.lang.String |
id
The identifier of the cluster step.
|
private java.lang.String |
name
The name of the cluster step.
|
private StepStatus |
status
The current execution status details of the cluster step.
|
Constructor and Description |
---|
Step() |
Modifier and Type | Method and Description |
---|---|
Step |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionOnFailure()
This specifies what action to take when the cluster step fails.
|
HadoopStepConfig |
getConfig()
The Hadoop job configuration of the cluster step.
|
java.lang.String |
getId()
The identifier of the cluster step.
|
java.lang.String |
getName()
The name of the cluster step.
|
StepStatus |
getStatus()
The current execution status details of the cluster step.
|
int |
hashCode() |
void |
setActionOnFailure(ActionOnFailure actionOnFailure)
This specifies what action to take when the cluster step fails.
|
void |
setActionOnFailure(java.lang.String actionOnFailure)
This specifies what action to take when the cluster step fails.
|
void |
setConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
|
void |
setId(java.lang.String id)
The identifier of the cluster step.
|
void |
setName(java.lang.String name)
The name of the cluster step.
|
void |
setStatus(StepStatus status)
The current execution status details of the cluster step.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Step |
withActionOnFailure(ActionOnFailure actionOnFailure)
This specifies what action to take when the cluster step fails.
|
Step |
withActionOnFailure(java.lang.String actionOnFailure)
This specifies what action to take when the cluster step fails.
|
Step |
withConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
|
Step |
withId(java.lang.String id)
The identifier of the cluster step.
|
Step |
withName(java.lang.String name)
The name of the cluster step.
|
Step |
withStatus(StepStatus status)
The current execution status details of the cluster step.
|
private java.lang.String id
The identifier of the cluster step.
private java.lang.String name
The name of the cluster step.
private HadoopStepConfig config
The Hadoop job configuration of the cluster step.
private java.lang.String actionOnFailure
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
private StepStatus status
The current execution status details of the cluster step.
public void setId(java.lang.String id)
The identifier of the cluster step.
id
- The identifier of the cluster step.public java.lang.String getId()
The identifier of the cluster step.
public Step withId(java.lang.String id)
The identifier of the cluster step.
id
- The identifier of the cluster step.public void setName(java.lang.String name)
The name of the cluster step.
name
- The name of the cluster step.public java.lang.String getName()
The name of the cluster step.
public Step withName(java.lang.String name)
The name of the cluster step.
name
- The name of the cluster step.public void setConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
config
- The Hadoop job configuration of the cluster step.public HadoopStepConfig getConfig()
The Hadoop job configuration of the cluster step.
public Step withConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
config
- The Hadoop job configuration of the cluster step.public void setActionOnFailure(java.lang.String actionOnFailure)
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
actionOnFailure
- This specifies what action to take when the cluster step fails.
Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and
CONTINUE.ActionOnFailure
public java.lang.String getActionOnFailure()
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
ActionOnFailure
public Step withActionOnFailure(java.lang.String actionOnFailure)
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
actionOnFailure
- This specifies what action to take when the cluster step fails.
Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and
CONTINUE.ActionOnFailure
public void setActionOnFailure(ActionOnFailure actionOnFailure)
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
actionOnFailure
- This specifies what action to take when the cluster step fails.
Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and
CONTINUE.ActionOnFailure
public Step withActionOnFailure(ActionOnFailure actionOnFailure)
This specifies what action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
actionOnFailure
- This specifies what action to take when the cluster step fails.
Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and
CONTINUE.ActionOnFailure
public void setStatus(StepStatus status)
The current execution status details of the cluster step.
status
- The current execution status details of the cluster step.public StepStatus getStatus()
The current execution status details of the cluster step.
public Step withStatus(StepStatus status)
The current execution status details of the cluster step.
status
- The current execution status details of the cluster 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 Step clone()
clone
in class java.lang.Object