Package io.trino.execution
Interface RemoteTask
-
- All Known Implementing Classes:
HttpRemoteTask
public interface RemoteTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabort()voidaddFinalTaskInfoListener(StateMachine.StateChangeListener<TaskInfo> stateChangeListener)Add a listener for the final task info.voidaddSplits(com.google.common.collect.Multimap<PlanNodeId,Split> splits)voidaddStateChangeListener(StateMachine.StateChangeListener<TaskStatus> 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()voidfail(Throwable cause)StringgetNodeId()PartitionedSplitsInfogetPartitionedSplitsInfo()PartitionedSplitsInfogetQueuedPartitionedSplitsInfo()TaskIdgetTaskId()TaskInfogetTaskInfo()TaskStatusgetTaskStatus()intgetUnacknowledgedPartitionedSplitCount()voidnoMoreSplits(PlanNodeId sourceId)voidnoMoreSplits(PlanNodeId sourceId, Lifespan lifespan)voidsetOutputBuffers(OutputBuffers outputBuffers)voidstart()com.google.common.util.concurrent.ListenableFuture<Void>whenSplitQueueHasSpace(long weightThreshold)
-
-
-
Method Detail
-
getTaskId
TaskId getTaskId()
-
getNodeId
String getNodeId()
-
getTaskInfo
TaskInfo getTaskInfo()
-
getTaskStatus
TaskStatus getTaskStatus()
-
start
void start()
-
addSplits
void addSplits(com.google.common.collect.Multimap<PlanNodeId,Split> splits)
-
noMoreSplits
void noMoreSplits(PlanNodeId sourceId)
-
noMoreSplits
void noMoreSplits(PlanNodeId sourceId, Lifespan lifespan)
-
setOutputBuffers
void setOutputBuffers(OutputBuffers outputBuffers)
-
addStateChangeListener
void addStateChangeListener(StateMachine.StateChangeListener<TaskStatus> 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. Additionally, it is possible notifications are observed out of order due to the asynchronous execution.
-
addFinalTaskInfoListener
void addFinalTaskInfoListener(StateMachine.StateChangeListener<TaskInfo> stateChangeListener)
Add a listener for the final task info. This notification is guaranteed to be fired only once. 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.
-
whenSplitQueueHasSpace
com.google.common.util.concurrent.ListenableFuture<Void> whenSplitQueueHasSpace(long weightThreshold)
-
cancel
void cancel()
-
abort
void abort()
-
getPartitionedSplitsInfo
PartitionedSplitsInfo getPartitionedSplitsInfo()
-
fail
void fail(Throwable cause)
-
getQueuedPartitionedSplitsInfo
PartitionedSplitsInfo getQueuedPartitionedSplitsInfo()
-
getUnacknowledgedPartitionedSplitCount
int getUnacknowledgedPartitionedSplitCount()
-
-