@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationReport extends Object
ApplicationReport
is a report of an application.
It includes details such as:
ApplicationId
of the application.ApplicationMaster
is running.ApplicationMaster
.YarnApplicationState
of the application.Token
of the application (if security is enabled).ApplicationBaseProtocol.getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest)
Constructor and Description |
---|
ApplicationReport() |
Modifier and Type | Method and Description |
---|---|
abstract Token |
getAMRMToken()
Get the AMRM token of the application.
|
abstract ApplicationId |
getApplicationId()
Get the
ApplicationId of the application. |
abstract ApplicationResourceUsageReport |
getApplicationResourceUsageReport()
Retrieve the structure containing the job resources for this application
|
abstract Set<String> |
getApplicationTags()
Get all tags corresponding to the application
|
abstract String |
getApplicationType()
Get the application's Type
|
abstract Token |
getClientToAMToken()
Get the client token for communicating with the
ApplicationMaster . |
abstract ApplicationAttemptId |
getCurrentApplicationAttemptId()
Get the
ApplicationAttemptId of the current
attempt of the application |
abstract String |
getDiagnostics()
Get the diagnositic information of the application in case of
errors.
|
abstract FinalApplicationStatus |
getFinalApplicationStatus()
Get the final finish status of the application.
|
abstract long |
getFinishTime()
Get the finish time of the application.
|
abstract String |
getHost()
Get the host on which the
ApplicationMaster
is running. |
abstract String |
getName()
Get the user-defined name of the application.
|
abstract float |
getProgress()
Get the application's progress ( range 0.0 to 1.0 )
|
abstract String |
getQueue()
Get the queue to which the application was submitted.
|
abstract int |
getRpcPort()
Get the RPC port of the
ApplicationMaster . |
abstract long |
getStartTime()
Get the start time of the application.
|
abstract String |
getTrackingUrl()
Get the tracking url for the application.
|
abstract String |
getUser()
Get the user who submitted the application.
|
abstract YarnApplicationState |
getYarnApplicationState()
Get the
YarnApplicationState of the application. |
public ApplicationReport()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationId getApplicationId()
ApplicationId
of the application.ApplicationId
of the application@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationAttemptId getCurrentApplicationAttemptId()
ApplicationAttemptId
of the current
attempt of the applicationApplicationAttemptId
of the attempt@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getUser()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getQueue()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getName()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHost()
ApplicationMaster
is running.ApplicationMaster
is running@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getRpcPort()
ApplicationMaster
.ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Token getClientToAMToken()
ApplicationMaster
.
ClientToAMToken is the security token used by the AMs to verify
authenticity of any client
.
The ResourceManager
, provides a secure token (via
getClientToAMToken()
) which is verified by the
ApplicationMaster when the client directly talks to an AM.
ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract YarnApplicationState getYarnApplicationState()
YarnApplicationState
of the application.YarnApplicationState
of the application@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getDiagnostics()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getTrackingUrl()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getStartTime()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getFinishTime()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract FinalApplicationStatus getFinalApplicationStatus()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationResourceUsageReport getApplicationResourceUsageReport()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract float getProgress()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getApplicationType()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Set<String> getApplicationTags()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Token getAMRMToken()
UserGroupInformation
of the
current user.
The AMRM token will be returned only if all the following conditions are
met:
Copyright © 2015 Apache Software Foundation. All Rights Reserved.