org.apache.hadoop.yarn.api.protocolrecords
Class FinishApplicationMasterRequest

java.lang.Object
  extended by org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class FinishApplicationMasterRequest
extends Object

The finalization request sent by the ApplicationMaster to inform the ResourceManager about its completion.

The final request includes details such:

See Also:
ApplicationMasterProtocol.finishApplicationMaster(FinishApplicationMasterRequest)

Constructor Summary
FinishApplicationMasterRequest()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinishApplicationMasterRequest

public FinishApplicationMasterRequest()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static FinishApplicationMasterRequest newInstance(FinalApplicationStatus finalAppStatus,
                                                                                                            String diagnostics,
                                                                                                            String url)

getFinalApplicationStatus

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract FinalApplicationStatus getFinalApplicationStatus()
Get final state of the ApplicationMaster.

Returns:
final state of the ApplicationMaster

setFinalApplicationStatus

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setFinalApplicationStatus(FinalApplicationStatus finalState)
Set the final state of the ApplicationMaster

Parameters:
finalState - final state of the ApplicationMaster

getDiagnostics

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getDiagnostics()
Get diagnostic information on application failure.

Returns:
diagnostic information on application failure

setDiagnostics

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setDiagnostics(String diagnostics)
Set diagnostic information on application failure.

Parameters:
diagnostics - diagnostic information on application failure

getTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getTrackingUrl()
Get the tracking URL for the ApplicationMaster. 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

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setTrackingUrl(String url)
Set the final tracking URLfor the 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.

Parameters:
url - tracking URLfor the ApplicationMaster


Copyright © 2013 Apache Software Foundation. All Rights Reserved.