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

All Known Implementing Classes:
FinishApplicationMasterRequestPBImpl

public interface FinishApplicationMasterRequest

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

The final request includes details such:

See Also:
AMRMProtocol.finishApplicationMaster(FinishApplicationMasterRequest)

Method Summary
 ApplicationAttemptId getApplicationAttemptId()
          Get the ApplicationAttemptId being managed by the ApplicationMaster.
 String getDiagnostics()
          Get diagnostic information on application failure.
 FinalApplicationStatus getFinalApplicationStatus()
          Get final state of the ApplicationMaster.
 String getTrackingUrl()
          Get the tracking URL for the ApplicationMaster.
 void setAppAttemptId(ApplicationAttemptId applicationAttemptId)
          Set the ApplicationAttemptId being managed by the ApplicationMaster.
 void setDiagnostics(String diagnostics)
          Set diagnostic information on application failure.
 void setFinishApplicationStatus(FinalApplicationStatus finishState)
          Set the finish state of the ApplicationMaster
 void setTrackingUrl(String url)
          Set the tracking URLfor the ApplicationMaster
 

Method Detail

getApplicationAttemptId

@InterfaceAudience.Public
@InterfaceStability.Stable
ApplicationAttemptId getApplicationAttemptId()
Get the ApplicationAttemptId being managed by the ApplicationMaster.

Returns:
ApplicationAttemptId being managed by the ApplicationMaster

setAppAttemptId

@InterfaceAudience.Public
@InterfaceStability.Stable
void setAppAttemptId(ApplicationAttemptId applicationAttemptId)
Set the ApplicationAttemptId being managed by the ApplicationMaster.

Parameters:
applicationAttemptId - ApplicationAttemptId being managed by the ApplicationMaster

getFinalApplicationStatus

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

Returns:
final state of the ApplicationMaster

setFinishApplicationStatus

@InterfaceAudience.Public
@InterfaceStability.Stable
void setFinishApplicationStatus(FinalApplicationStatus finishState)
Set the finish state of the ApplicationMaster

Parameters:
finishState - finish state of the ApplicationMaster

getDiagnostics

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

Returns:
diagnostic information on application failure

setDiagnostics

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

Parameters:
diagnostics - diagnostic information on application failure

getTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Stable
String getTrackingUrl()
Get the tracking URL for the ApplicationMaster.

Returns:
tracking URLfor the ApplicationMaster

setTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Stable
void setTrackingUrl(String url)
Set the tracking URLfor the ApplicationMaster

Parameters:
url - tracking URLfor the ApplicationMaster


Copyright © 2012 Apache Software Foundation. All Rights Reserved.