Class FinishApplicationMasterRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest
The finalization request sent by the
ApplicationMaster to
inform the ResourceManager about its completion.
The final request includes details such:
- Final state of the
ApplicationMaster -
Diagnostic information in case of failure of the
ApplicationMaster - Tracking URL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet diagnostic information on application failure.abstract FinalApplicationStatusGet final state of theApplicationMaster.abstract StringGet the tracking URL for theApplicationMaster.newInstance(FinalApplicationStatus finalAppStatus, String diagnostics, String url) abstract voidsetDiagnostics(String diagnostics) Set diagnostic information on application failure.abstract voidsetFinalApplicationStatus(FinalApplicationStatus finalState) Set the final state of theApplicationMasterabstract voidsetTrackingUrl(String url) Set the final tracking URLfor theApplicationMaster.
-
Constructor Details
-
FinishApplicationMasterRequest
public FinishApplicationMasterRequest()
-
-
Method Details
-
newInstance
@Public @Stable public static FinishApplicationMasterRequest newInstance(FinalApplicationStatus finalAppStatus, String diagnostics, String url) -
getFinalApplicationStatus
Get final state of theApplicationMaster.- Returns:
- final state of the
ApplicationMaster
-
setFinalApplicationStatus
Set the final state of theApplicationMaster- Parameters:
finalState- final state of theApplicationMaster
-
getDiagnostics
Get diagnostic information on application failure.- Returns:
- diagnostic information on application failure
-
setDiagnostics
Set diagnostic information on application failure.- Parameters:
diagnostics- diagnostic information on application failure
-
getTrackingUrl
Get the tracking URL for theApplicationMaster. This url if contains scheme then that will be used by resource manager web application proxy otherwise it will default to http.- Returns:
- tracking URLfor the
ApplicationMaster
-
setTrackingUrl
Set the final tracking URLfor theApplicationMaster. This is the web-URL to which ResourceManager or web-application proxy will redirect client/users once the application is finished and theApplicationMasteris gone.If the passed url has a scheme then that will be used by the ResourceManager and web-application proxy, otherwise the scheme will default to http.
Empty, null, "N/A" strings are all valid besides a real URL. In case an url isn't explicitly passed, it defaults to "N/A" on the ResourceManager.
- Parameters:
url- tracking URLfor theApplicationMaster
-