Class ExecutorStepExecution
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.steps.StepExecution
-
- org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
-
- org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution
-
- All Implemented Interfaces:
Serializable
public class ExecutorStepExecution extends org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutorStepExecution.AnomalousStatus
Looks for executions whosegetStatus()
would be neither running nor scheduled, and cancels them.static class
ExecutorStepExecution.CancelledItemListener
static class
ExecutorStepExecution.PlaceholderTask
static class
ExecutorStepExecution.QueueTaskCancelled
static class
ExecutorStepExecution.RemovedNodeCause
static class
ExecutorStepExecution.RemovedNodeListener
static class
ExecutorStepExecution.RunningTasks
-
Field Summary
Fields Modifier and Type Field Description static long
TIMEOUT_WAITING_FOR_NODE_MILLIS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStatus()
void
onResume()
boolean
start()
General strategy of this step.void
stop(Throwable cause)
-
-
-
Method Detail
-
start
public boolean start() throws Exception
General strategy of this step. 1. scheduleExecutorStepExecution.PlaceholderTask
into theQueue
(what this method does) 2. whenExecutorStepExecution.PlaceholderTask
starts running, invoke the closure 3. when the closure is done, letExecutorStepExecution.PlaceholderTask
complete- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
stop
public void stop(@NonNull Throwable cause) throws Exception
- Overrides:
stop
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
onResume
public void onResume()
- Overrides:
onResume
in classorg.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
-
getStatus
public String getStatus()
- Overrides:
getStatus
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
-