@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface ApplicationContext
| Modifier and Type | Method and Description |
|---|---|
Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationReport> |
getAllApplications()
This method returns all Application
ApplicationReports |
org.apache.hadoop.yarn.api.records.ContainerReport |
getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns
ContainerReport for specified
ApplicationAttemptId. |
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
This method returns Application
ApplicationReport for the specified
ApplicationId. |
org.apache.hadoop.yarn.api.records.ApplicationAttemptReport |
getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns
ApplicationAttemptReport for specified
ApplicationId. |
Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> |
getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Application can have multiple application attempts
ApplicationAttemptReport. |
org.apache.hadoop.yarn.api.records.ContainerReport |
getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
This method returns
ContainerReport for specified
ContainerId. |
Map<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.ContainerReport> |
getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns Map of
ContainerId to ContainerReport
for specified ApplicationAttemptId. |
@InterfaceAudience.Public
@InterfaceStability.Unstable
org.apache.hadoop.yarn.api.records.ApplicationReport getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws IOException
ApplicationReport for the specified
ApplicationId.appId - ApplicationReport for the ApplicationId.IOException@InterfaceAudience.Public @InterfaceStability.Unstable Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationReport> getAllApplications() throws IOException
ApplicationReportsApplicationId to ApplicationReports.IOException@InterfaceAudience.Public @InterfaceStability.Unstable Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException
ApplicationAttemptReport. This method returns the all
ApplicationAttemptReports for the Application.appId - ApplicationAttemptReports for the Application.IOException@InterfaceAudience.Public
@InterfaceStability.Unstable
org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
ApplicationAttemptReport for specified
ApplicationId.appAttemptId - ApplicationAttemptIdApplicationAttemptReport for ApplicationAttemptIdIOException@InterfaceAudience.Public
@InterfaceStability.Unstable
org.apache.hadoop.yarn.api.records.ContainerReport getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws IOException
ContainerReport for specified
ContainerId.containerId - ContainerIdContainerReport for ContainerIdIOException@InterfaceAudience.Public
@InterfaceStability.Unstable
org.apache.hadoop.yarn.api.records.ContainerReport getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
ContainerReport for specified
ApplicationAttemptId.appAttemptId - ApplicationAttemptIdContainerReport for ApplicationAttemptIdIOException@InterfaceAudience.Public @InterfaceStability.Unstable Map<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) throws IOException
ContainerId to ContainerReport
for specified ApplicationAttemptId.appAttemptId - ApplicationAttemptIdContainerId to ContainerReport for
ApplicationAttemptIdIOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.