Package org.apache.drill.yarn.appMaster
Class TaskState.EndingState
java.lang.Object
org.apache.drill.yarn.appMaster.TaskState
org.apache.drill.yarn.appMaster.TaskState.EndingState
- Enclosing class:
- TaskState
Task for which a termination request has been sent to the Drill-bit, but
confirmation has not yet been received from the Node Manager. (Not yet
supported in the Drill-bit.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.yarn.appMaster.TaskState
TaskState.EndingState, TaskState.KillingState
-
Field Summary
Fields inherited from class org.apache.drill.yarn.appMaster.TaskState
cancellable, END, ENDING, hasContainer, KILLING, label, LAUNCHING, lifeCycleEvent, REQUESTING, RUNNING, START, WAIT_END_ACK, WAIT_START_ACK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel
(EventContext context) Cluster manager wishes to cancel this task.void
completionAck
(EventContext context) The monitoring plugin has detected that the task has confirmed that it has started shutdown.void
containerCompleted
(EventContext context, org.apache.hadoop.yarn.api.records.ContainerStatus status) Normal ENDING --> WAIT_END_ACK | END transition.void
tick
(EventContext context, long curTime) If the graceful stop process exceeds the maximum timeout, go ahead and forcibly kill the process.Methods inherited from class org.apache.drill.yarn.appMaster.TaskState
completed, containerAllocated, containerStarted, containerStopped, endOrAck, getLabel, hasContainer, isCancellable, launchFailed, requestContainer, startAck, stopTaskFailed, taskStartFailed, taskTerminated, toString, transition
-
Constructor Details
-
EndingState
protected EndingState()
-
-
Method Details
-
containerCompleted
public void containerCompleted(EventContext context, org.apache.hadoop.yarn.api.records.ContainerStatus status) Normal ENDING --> WAIT_END_ACK | END transition.- Overrides:
containerCompleted
in classTaskState
- Parameters:
status
-
-
cancel
Description copied from class:TaskState
Cluster manager wishes to cancel this task. -
tick
If the graceful stop process exceeds the maximum timeout, go ahead and forcibly kill the process. -
completionAck
Description copied from class:TaskState
The monitoring plugin has detected that the task has confirmed that it has started shutdown.- Overrides:
completionAck
in classTaskState
-