@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface ContainerLauncherContext
extends org.apache.tez.serviceplugins.api.ServicePluginContextBase
| Modifier and Type | Method and Description |
|---|---|
void |
containerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int exitStatus,
String diagnostics,
TaskAttemptEndReason endReason)
Inform the scheduler that a container was successfully stopped
|
void |
containerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Inform the framework that a container has been launched
|
void |
containerLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
Inform the framework of an issue while trying to launch a container.
|
void |
containerStopFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
Inform the framework that the attempt to stop a container failed
|
void |
containerStopRequested(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Inform the framework that a request has been made to stop a container
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId()
Get the application attempt id for the running application.
|
int |
getNumNodes(String sourceName)
Get the number of nodes being handled by the specified source
|
Object |
getTaskCommunicatorMetaInfo(String taskCommName)
Get meta info from the specified TaskCommunicator.
|
void containerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId - the id of the container that has been launchedvoid containerLaunchFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
containerId - the id of the container which failed to launchdiagnostics - diagnostics for the failurevoid containerStopRequested(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId - the id of the associated containervoid containerStopFailed(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String diagnostics)
containerId - the id of the associated containerdiagnostics - diagnostics for the failurevoid containerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int exitStatus,
String diagnostics,
TaskAttemptEndReason endReason)
containerId - the id of the associated containerexitStatus - the exit status of the containerdiagnostics - diagnostics associated with the container endendReason - the end reason for the task running in the containerint getNumNodes(String sourceName)
sourceName - the relevant source nameorg.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Object getTaskCommunicatorMetaInfo(String taskCommName)
taskCommName - the name of the task communicatorCopyright © 2024 Apache Software Foundation. All rights reserved.