public class JobSetStep extends Object implements Serializable
JobDefinition
or a nested JobSet
.
This step is validated in the context of a JobSet by
BaseMetadata.validate()
.
Modifier and Type | Class and Description |
---|---|
static class |
JobSetStep.LinkType
Link types for the links for a serial JobSetStep.
|
Constructor and Description |
---|
JobSetStep(String stepId,
MetadataObjectId jobId)
Constructs a JobSetStep.
|
JobSetStep(String stepId,
MetadataObjectId jobId,
ParameterList stepParams)
Constructs a JobSetStep.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks if the object is equal to this JobSetStep.
|
MetadataObjectId |
getJobId()
Gets the job id for this step.
|
String |
getLink(JobSetStep.LinkType linkType)
Gets the stepId for the given
LinkType . |
String |
getStepId()
Gets the stepId for this step.
|
ParameterList |
getStepProps()
The parameters and properties for this step.
|
void |
setJobId(MetadataObjectId jobId)
Sets the jobId for this step.
|
void |
setLink(JobSetStep.LinkType linkType,
String linkStepId)
Defines a linked step for the given
LinkType . |
void |
setStepProps(ParameterList stepParams)
Sets the parameters and step properties for this step.
|
String |
toString()
String representation for this JobSetStep object.
|
public JobSetStep(String stepId, MetadataObjectId jobId)
stepId
- a step id that is unique within the JobSet.jobId
- the MetadataObjectId of the JobDefinition or
JobSet for this step.public JobSetStep(String stepId, MetadataObjectId jobId, ParameterList stepParams)
stepId
- a step id that is unique within the JobSet.jobId
- the MetadataObjectId of the JobDefinition or
JobSet for this step.stepParams
- the step parameters and properties for this step.public void setLink(JobSetStep.LinkType linkType, String linkStepId)
LinkType
.
The given stepId will be run when this step completes with a state matching the link type.
linkType
- the type of link to set.linkStepId
- the id of the step for the linkType.public String getLink(JobSetStep.LinkType linkType)
LinkType
.linkType
- the link type to get the step id for.public String getStepId()
public void setJobId(MetadataObjectId jobId)
jobId
- the job id (JobDefinition or JobSet) for this step.public MetadataObjectId getJobId()
public void setStepProps(ParameterList stepParams)
stepParams
- the step parameters and properties for this step.public ParameterList getStepProps()
ParameterList
with parameters and properties
for this step.public boolean equals(Object obj)
Equal means it has the same stepId, same jobId, same linked step ids, and same step parameters and properties.