public class AMContainerImpl extends Object implements AMContainer
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.event.EventHandler |
eventHandler |
| Constructor and Description |
|---|
AMContainerImpl(org.apache.hadoop.yarn.api.records.Container container,
ContainerHeartbeatHandler chh,
TaskCommunicatorManagerInterface tal,
ContainerSignatureMatcher signatureMatcher,
AppContext appContext,
int schedulerId,
int launcherId,
int taskCommId,
String auxiliaryService) |
public AMContainerImpl(org.apache.hadoop.yarn.api.records.Container container,
ContainerHeartbeatHandler chh,
TaskCommunicatorManagerInterface tal,
ContainerSignatureMatcher signatureMatcher,
AppContext appContext,
int schedulerId,
int launcherId,
int taskCommId,
String auxiliaryService)
public AMContainerState getState()
getState in interface AMContainerpublic org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
getContainerId in interface AMContainerpublic org.apache.hadoop.yarn.api.records.Container getContainer()
getContainer in interface AMContainerpublic List<TezTaskAttemptID> getAllTaskAttempts()
getAllTaskAttempts in interface AMContainerpublic TezTaskAttemptID getCurrentTaskAttempt()
getCurrentTaskAttempt in interface AMContainerpublic long getCurrentTaskAttemptAllocationTime()
getCurrentTaskAttemptAllocationTime in interface AMContainerpublic int getTaskSchedulerIdentifier()
getTaskSchedulerIdentifier in interface AMContainerpublic int getContainerLauncherIdentifier()
getContainerLauncherIdentifier in interface AMContainerpublic int getTaskCommunicatorIdentifier()
getTaskCommunicatorIdentifier in interface AMContainerpublic boolean isInErrorState()
isInErrorState in interface AMContainerpublic void handle(AMContainerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<AMContainerEvent>protected void registerFailedAttempt(TezTaskAttemptID taId)
protected void deAllocate()
protected void sendTerminatedToTaskAttempt(TezTaskAttemptID taId, String message, TaskAttemptTerminationCause errCause)
protected void sendContainerTerminatedBySystemToTaskAttempt(TezTaskAttemptID taId, String message, TaskAttemptTerminationCause errorCause)
protected void sendTerminatingToTaskAttempt(TezTaskAttemptID taId, String message, TaskAttemptTerminationCause errorCause)
protected void maybeSendNodeFailureForFailedAssignment(TezTaskAttemptID taId)
protected void sendNodeFailureToTA(TezTaskAttemptID taId, String message, TaskAttemptTerminationCause errorCause)
protected void sendStartRequestToNM(org.apache.hadoop.yarn.api.records.ContainerLaunchContext clc)
protected void sendStopRequestToNM()
protected void unregisterAttemptFromListener(TezTaskAttemptID attemptId, TaskAttemptEndReason endReason, String diagnostics)
protected void registerAttemptWithListener(AMContainerTask amContainerTask)
protected void registerWithTAListener()
protected void unregisterFromTAListener(ContainerEndReason endReason, String diagnostics)
protected void registerWithContainerListener()
protected void unregisterFromContainerListener()
Copyright © 2022 Apache Software Foundation. All rights reserved.