Package com.adobe.aio.cloudmanager
Interface PipelineExecutionStepState
-
public interface PipelineExecutionStepStateA Pipeline Execution Step representation - an instance of an action/step within a Pipeline Execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPipelineExecutionStepState.StatusPipeline Execution Step status values
-
Field Summary
Fields Modifier and Type Field Description static Predicate<PipelineExecutionStepState>IS_CURRENTPredicate for finding the current step in the execution.static Predicate<PipelineExecutionStepState>IS_RUNNINGPredicate for the step that within the execution which is currently running.static Predicate<PipelineExecutionStepState>IS_WAITINGPredicate for finding a step within the execution which is waiting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PipelineExecutiongetExecution()Get the execution associated with this step state.StringgetId()The id of this execution step state.voidgetLog(File dir)Download the default log associated with this step, to the specified directory.voidgetLog(String name, File dir)Download the named log associated with this step, to the specified directory.StringgetPhaseId()The id of the phase in the pipeline.PipelineExecutionStepState.StatusgetStatusState()The current status of the pipeline execution step.StepActiongetStepAction()The action of the step.StringgetStepId()The id of the step in the pipeline.booleanhasLogs()Indicates if this step has a log which can be retrieved.
-
-
-
Field Detail
-
IS_CURRENT
static final Predicate<PipelineExecutionStepState> IS_CURRENT
Predicate for finding the current step in the execution.
-
IS_WAITING
static final Predicate<PipelineExecutionStepState> IS_WAITING
Predicate for finding a step within the execution which is waiting.
-
IS_RUNNING
static final Predicate<PipelineExecutionStepState> IS_RUNNING
Predicate for the step that within the execution which is currently running.
-
-
Method Detail
-
getId
String getId()
The id of this execution step state.- Returns:
- the id
-
getStepId
String getStepId()
The id of the step in the pipeline.- Returns:
- the step id
-
getPhaseId
String getPhaseId()
The id of the phase in the pipeline.- Returns:
- the phase id
-
getStepAction
StepAction getStepAction()
The action of the step.- Returns:
- the action
- See Also:
StepAction
-
getStatusState
PipelineExecutionStepState.Status getStatusState()
The current status of the pipeline execution step.- Returns:
- the status
- See Also:
PipelineExecutionStepState.Status
-
getExecution
PipelineExecution getExecution() throws CloudManagerApiException
Get the execution associated with this step state.- Returns:
- pipeline execution
- Throws:
CloudManagerApiException- when any error occurs
-
hasLogs
boolean hasLogs()
Indicates if this step has a log which can be retrieved.- Returns:
trueif a log exists,falseotherwise.
-
getLog
void getLog(File dir) throws CloudManagerApiException
Download the default log associated with this step, to the specified directory.- Parameters:
dir- the directory in which to save the file- Throws:
CloudManagerApiException- when any error occurs
-
getLog
void getLog(String name, File dir) throws CloudManagerApiException
Download the named log associated with this step, to the specified directory.- Parameters:
name- The name of the log to retrievedir- the directory in which to save the file- Throws:
CloudManagerApiException- when any error occurs
-
-