public interface JobExecutionStateMachine extends org.springframework.context.ApplicationListener<KillService.KillEvent>
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts the state machine and returns.
|
void |
stop()
Request early termination of the state machine, for example in response to user submitting a kill via API or
ctrl-c.
|
States |
waitForStop()
Waits for the state machine to stop executing (i.e.
|
void start()
States waitForStop() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the waiting thread is interruptedvoid stop()
Notice: - Transition actions are not interrupted. Shutdown procedure will start after the currently executing transition action has completed - Some transition actions are still performed before the program exits. For example publish the updated final job status server-side, or archiving logs.