TaskState.EndingState, TaskState.KillingState
cancellable, END, ENDING, hasContainer, KILLING, label, LAUNCHING, lifeCycleEvent, REQUESTING, RUNNING, START, WAIT_END_ACK, WAIT_START_ACK
Modifier | Constructor and Description |
---|---|
protected |
EndingState() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
completed, containerAllocated, containerStarted, containerStopped, endOrAck, getLabel, hasContainer, isCancellable, launchFailed, requestContainer, startAck, stopTaskFailed, taskStartFailed, taskTerminated, toString, transition
public void containerCompleted(EventContext context, org.apache.hadoop.yarn.api.records.ContainerStatus status)
containerCompleted
in class TaskState
status
- public void cancel(EventContext context)
TaskState
public void tick(EventContext context, long curTime)
public void completionAck(EventContext context)
TaskState
completionAck
in class TaskState
Copyright © 1970 The Apache Software Foundation. All rights reserved.