@InterfaceAudience.Public @InterfaceStability.Stable public abstract class FinishApplicationMasterRequest extends Object
ApplicationMaster
to
inform the ResourceManager
about its completion.
The final request includes details such:
ApplicationMaster
ApplicationMaster
Constructor and Description |
---|
FinishApplicationMasterRequest() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getDiagnostics()
Get diagnostic information on application failure.
|
abstract FinalApplicationStatus |
getFinalApplicationStatus()
Get final state of the
ApplicationMaster . |
abstract String |
getTrackingUrl()
Get the tracking URL for the
ApplicationMaster . |
static FinishApplicationMasterRequest |
newInstance(FinalApplicationStatus finalAppStatus,
String diagnostics,
String url) |
abstract void |
setDiagnostics(String diagnostics)
Set diagnostic information on application failure.
|
abstract void |
setFinalApplicationStatus(FinalApplicationStatus finalState)
Set the final state of the
ApplicationMaster |
abstract void |
setTrackingUrl(String url)
Set the final tracking URLfor the
ApplicationMaster . |
@InterfaceAudience.Public @InterfaceStability.Stable public static FinishApplicationMasterRequest newInstance(FinalApplicationStatus finalAppStatus, String diagnostics, String url)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract FinalApplicationStatus getFinalApplicationStatus()
ApplicationMaster
.ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setFinalApplicationStatus(FinalApplicationStatus finalState)
ApplicationMaster
finalState
- final state of the ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getDiagnostics()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setDiagnostics(String diagnostics)
diagnostics
- diagnostic information on application failure@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getTrackingUrl()
ApplicationMaster
.
This url if contains scheme then that will be used by resource manager
web application proxy otherwise it will default to http.ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setTrackingUrl(String url)
ApplicationMaster
.
This is the web-URL to which ResourceManager or web-application proxy will
redirect client/users once the application is finished and the
ApplicationMaster
is 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.
url
- tracking URLfor the ApplicationMaster
Copyright © 2017 Apache Software Foundation. All rights reserved.