Interface JobExecutionStateMachine
- All Known Implementing Classes:
JobExecutionStateMachineImpl
public interface JobExecutionStateMachine
Interface JobExecutionStateMachine hides the actual state machine details.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.genie.agent.execution.statemachine.ExecutionContext
Get the execution context.Get the list of execution stages.void
kill
(KillService.KillSource killSource) Abort execution, if necessary by stopping the running job process.void
run()
Runs the state machine until completion.
-
Method Details
-
run
void run()Runs the state machine until completion. -
getExecutionStages
List<ExecutionStage> getExecutionStages()Get the list of execution stages.- Returns:
- an immutable ordered list of execution stages
-
getExecutionContext
com.netflix.genie.agent.execution.statemachine.ExecutionContext getExecutionContext()Get the execution context. This is meant for post-execution read-only access.- Returns:
- the execution context used by the state machine.
-
kill
Abort execution, if necessary by stopping the running job process. The state machine still runs to termination, but may skip steps as appropriate.- Parameters:
killSource
- a representation of who/what requested the kill
-