Package io.trino.execution
Class TaskStateMachine
java.lang.Object
io.trino.execution.TaskStateMachine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidvoidaddStateChangeListener(StateMachine.StateChangeListener<TaskState> stateChangeListener) Listener is always notified asynchronously using a dedicated notification thread pool so, care should be taken to avoid leakingthiswhen adding a listener in a constructor.voidcancel()voidvoidfinished()org.joda.time.DateTimegetState()com.google.common.util.concurrent.ListenableFuture<TaskState> getStateChange(TaskState currentState) voidsourceTaskFailed(TaskId taskId, Throwable failure) voidtoString()void
-
Constructor Details
-
TaskStateMachine
-
-
Method Details
-
getCreatedTime
public org.joda.time.DateTime getCreatedTime() -
getTaskId
-
getState
-
getStateChange
-
getFailureCauses
-
transitionToFlushing
public void transitionToFlushing() -
finished
public void finished() -
cancel
public void cancel() -
abort
public void abort() -
failed
-
terminationComplete
public void terminationComplete() -
addStateChangeListener
Listener is always notified asynchronously using a dedicated notification thread pool so, care should be taken to avoid leakingthiswhen adding a listener in a constructor. Additionally, it is possible notifications are observed out of order due to the asynchronous execution. -
addSourceTaskFailureListener
-
sourceTaskFailed
-
toString
-