@InterfaceAudience.Private @InterfaceStability.Unstable public class AHSClientImpl extends AHSClient
Service.STATE| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
ahsAddress |
protected ApplicationHistoryProtocol |
ahsClient |
| Constructor and Description |
|---|
AHSClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationAttemptReport |
getApplicationAttemptReport(ApplicationAttemptId applicationAttemptId)
Get a report of the given ApplicationAttempt.
|
List<ApplicationAttemptReport> |
getApplicationAttempts(ApplicationId appId)
Get a report of all (ApplicationAttempts) of Application in the cluster.
|
ApplicationReport |
getApplicationReport(ApplicationId appId)
Get a report of the given Application.
|
List<ApplicationReport> |
getApplications()
Get a report (ApplicationReport) of all Applications in the cluster.
|
ContainerReport |
getContainerReport(ContainerId containerId)
Get a report of the given Container.
|
List<ContainerReport> |
getContainers(ApplicationAttemptId applicationAttemptId)
Get a report of all (Containers) of ApplicationAttempt in the cluster.
|
protected void |
serviceInit(Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
createAHSClientclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected ApplicationHistoryProtocol ahsClient
protected InetSocketAddress ahsAddress
protected void serviceInit(Configuration conf) throws Exception
serviceInit in class AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class AbstractServiceExceptionpublic ApplicationReport getApplicationReport(ApplicationId appId) throws YarnException, IOException
AHSClient
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:
getApplicationReport in class AHSClientappId - ApplicationId of the application that needs a reportYarnExceptionIOExceptionpublic List<ApplicationReport> getApplications() throws YarnException, IOException
AHSClientGet 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
AHSClient.getApplicationReport(ApplicationId).
getApplications in class AHSClientYarnExceptionIOExceptionpublic ApplicationAttemptReport getApplicationAttemptReport(ApplicationAttemptId applicationAttemptId) throws YarnException, IOException
AHSClientGet a report of the given ApplicationAttempt.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
getApplicationAttemptReport in class AHSClientapplicationAttemptId - ApplicationAttemptId of the application attempt that needs
a reportYarnExceptionApplicationAttemptNotFoundException - if application attempt
not foundIOExceptionpublic List<ApplicationAttemptReport> getApplicationAttempts(ApplicationId appId) throws YarnException, IOException
AHSClientGet a report of all (ApplicationAttempts) of Application in the cluster.
getApplicationAttempts in class AHSClientYarnExceptionIOExceptionpublic ContainerReport getContainerReport(ContainerId containerId) throws YarnException, IOException
AHSClientGet a report of the given Container.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
getContainerReport in class AHSClientcontainerId - ContainerId of the container that needs a reportYarnExceptionContainerNotFoundException - if container not foundIOExceptionpublic List<ContainerReport> getContainers(ApplicationAttemptId applicationAttemptId) throws YarnException, IOException
AHSClientGet a report of all (Containers) of ApplicationAttempt in the cluster.
getContainers in class AHSClientYarnExceptionIOExceptionCopyright © 2018 CERN. All Rights Reserved.