|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.client.api.AHSClient
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class AHSClient
| Constructor Summary | |
|---|---|
AHSClient(String name)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@InterfaceAudience.Private public AHSClient(String name)
| Method Detail |
|---|
@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 report
YarnException
IOException
public 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).
YarnException
IOException
public 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 report
YarnException
{@link - ApplicationAttemptNotFoundException} if application attempt
not found
IOException
public abstract List<ApplicationAttemptReport> getApplicationAttempts(ApplicationId applicationId)
throws YarnException,
IOException
Get a report of all (ApplicationAttempts) of Application in the cluster.
applicationId -
YarnException
IOException
public 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 report
YarnException
{@link - ContainerNotFoundException} if container not found
IOException
public abstract List<ContainerReport> getContainers(ApplicationAttemptId applicationAttemptId)
throws YarnException,
IOException
Get a report of all (Containers) of ApplicationAttempt in the cluster.
applicationAttemptId -
YarnException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||