Class GetNewApplicationResponse

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse

@Public @Stable public abstract class GetNewApplicationResponse extends Object

The response sent by the ResourceManager to the client for a request to get a new ApplicationId for submitting applications.

Clients can submit an application with the returned ApplicationId.

See Also:
  • Constructor Details

    • GetNewApplicationResponse

      public GetNewApplicationResponse()
  • Method Details

    • newInstance

      @Private @Unstable public static GetNewApplicationResponse newInstance(ApplicationId applicationId, Resource minCapability, Resource maxCapability)
    • getApplicationId

      @Public @Stable public abstract ApplicationId getApplicationId()
      Get the new ApplicationId allocated by the ResourceManager.
      Returns:
      new ApplicationId allocated by the ResourceManager
    • setApplicationId

      @Private @Unstable public abstract void setApplicationId(ApplicationId applicationId)
    • getMaximumResourceCapability

      @Public @Stable public abstract Resource getMaximumResourceCapability()
      Get the maximum capability for any Resource allocated by the ResourceManager in the cluster.
      Returns:
      maximum capability of allocated resources in the cluster
    • setMaximumResourceCapability

      @Private @Unstable public abstract void setMaximumResourceCapability(Resource capability)