Class JobExecutionStateMachineImpl

    • Constructor Detail

      • JobExecutionStateMachineImpl

        public JobExecutionStateMachineImpl​(java.util.List<ExecutionStage> executionStages,
                                            com.netflix.genie.agent.execution.statemachine.ExecutionContext executionContext,
                                            java.util.Collection<JobExecutionListener> listeners,
                                            JobProcessManager jobProcessManager)
        Constructor.
        Parameters:
        executionStages - the (ordered) list of execution stages
        executionContext - the execution context passed across stages during execution
        listeners - the list of listeners
        jobProcessManager - the job process manager
    • Method Detail

      • kill

        public void kill​(KillService.KillSource killSource)
        Description copied from interface: JobExecutionStateMachine
        Abort execution, if necessary by stopping the running job process. The state machine still runs to termination, but may skip steps as appropriate.
        Specified by:
        kill in interface JobExecutionStateMachine
        Parameters:
        killSource - a representation of who/what requested the kill