@InterfaceAudience.Public @InterfaceStability.Stable public abstract class AHSClient extends AbstractService
| Modifier and Type | Method and Description |
|---|---|
static AHSClient |
createAHSClient()
Create a new instance of AHSClient.
|
abstract ApplicationAttemptReport |
getApplicationAttemptReport(ApplicationAttemptId applicationAttemptId)
Get a report of the given ApplicationAttempt.
|
abstract List<ApplicationAttemptReport> |
getApplicationAttempts(ApplicationId applicationId)
Get a report of all (ApplicationAttempts) of Application in the cluster.
|
abstract ApplicationReport |
getApplicationReport(ApplicationId appId)
Get a report of the given Application.
|
abstract List<ApplicationReport> |
getApplications()
Get a report (ApplicationReport) of all Applications in the cluster.
|
abstract ContainerReport |
getContainerReport(ContainerId containerId)
Get a report of the given Container.
|
abstract List<ContainerReport> |
getContainers(ApplicationAttemptId applicationAttemptId)
Get a report of all (Containers) of ApplicationAttempt in the cluster.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@InterfaceAudience.Public public static AHSClient createAHSClient()
public abstract ApplicationReport getApplicationReport(ApplicationId appId) throws YarnException, IOException
Get a report of the given Application.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
If the user does not have VIEW_APP access then the following
fields in the report will be set to stubbed values:
appId - ApplicationId of the application that needs a reportYarnExceptionIOExceptionpublic abstract List<ApplicationReport> getApplications() throws YarnException, IOException
Get a report (ApplicationReport) of all Applications in the cluster.
If the user does not have VIEW_APP access for an application
then the corresponding report will be filtered as described in
getApplicationReport(ApplicationId).
YarnExceptionIOExceptionpublic abstract ApplicationAttemptReport getApplicationAttemptReport(ApplicationAttemptId applicationAttemptId) throws YarnException, IOException
Get a report of the given ApplicationAttempt.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
applicationAttemptId - ApplicationAttemptId of the application attempt that needs
a reportYarnException{@link - ApplicationAttemptNotFoundException} if application attempt
not foundIOExceptionpublic abstract List<ApplicationAttemptReport> getApplicationAttempts(ApplicationId applicationId) throws YarnException, IOException
Get a report of all (ApplicationAttempts) of Application in the cluster.
applicationId - YarnExceptionIOExceptionpublic abstract ContainerReport getContainerReport(ContainerId containerId) throws YarnException, IOException
Get a report of the given Container.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
containerId - ContainerId of the container that needs a reportYarnException{@link - ContainerNotFoundException} if container not foundIOExceptionpublic abstract List<ContainerReport> getContainers(ApplicationAttemptId applicationAttemptId) throws YarnException, IOException
Get a report of all (Containers) of ApplicationAttempt in the cluster.
applicationAttemptId - YarnExceptionIOExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.