public class ContainerLauncherContextImpl extends Object implements org.apache.tez.serviceplugins.api.ContainerLauncherContext
| Constructor and Description |
|---|
ContainerLauncherContextImpl(AppContext appContext,
ContainerLauncherManager containerLauncherManager,
TaskCommunicatorManagerInterface tal,
org.apache.tez.dag.api.UserPayload initialUserPayload,
int containerLauncherIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
containerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int exitStatus,
String diagnostics,
org.apache.tez.serviceplugins.api.TaskAttemptEndReason endReason) |
void |
containerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
containerLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics) |
void |
containerStopFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics) |
void |
containerStopRequested(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
org.apache.tez.serviceplugins.api.DagInfo |
getCurrentDagInfo() |
org.apache.tez.dag.api.UserPayload |
getInitialUserPayload() |
int |
getNumNodes(String sourceName) |
Object |
getTaskCommunicatorMetaInfo(String taskCommName) |
void |
reportError(org.apache.tez.serviceplugins.api.ServicePluginError servicePluginError,
String message,
org.apache.tez.serviceplugins.api.DagInfo dagInfo) |
public ContainerLauncherContextImpl(AppContext appContext, ContainerLauncherManager containerLauncherManager, TaskCommunicatorManagerInterface tal, org.apache.tez.dag.api.UserPayload initialUserPayload, int containerLauncherIndex)
public void containerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerLaunched in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic void containerLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
containerLaunchFailed in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic void containerStopRequested(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerStopRequested in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic void containerStopFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
containerStopFailed in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic void containerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int exitStatus,
String diagnostics,
org.apache.tez.serviceplugins.api.TaskAttemptEndReason endReason)
containerCompleted in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic org.apache.tez.dag.api.UserPayload getInitialUserPayload()
getInitialUserPayload in interface org.apache.tez.serviceplugins.api.ServicePluginContextBasepublic int getNumNodes(String sourceName)
getNumNodes in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
getApplicationAttemptId in interface org.apache.tez.serviceplugins.api.ContainerLauncherContext@Nullable public org.apache.tez.serviceplugins.api.DagInfo getCurrentDagInfo()
getCurrentDagInfo in interface org.apache.tez.serviceplugins.api.ServicePluginContextBasepublic Object getTaskCommunicatorMetaInfo(String taskCommName)
getTaskCommunicatorMetaInfo in interface org.apache.tez.serviceplugins.api.ContainerLauncherContextpublic void reportError(org.apache.tez.serviceplugins.api.ServicePluginError servicePluginError,
String message,
org.apache.tez.serviceplugins.api.DagInfo dagInfo)
reportError in interface org.apache.tez.serviceplugins.api.ServicePluginContextBaseCopyright © 2019 Apache Software Foundation. All rights reserved.