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

All Known Implementing Classes:
GetNewApplicationResponsePBImpl

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface GetNewApplicationResponse

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

See Also:
ClientRMProtocol.getNewApplication(GetNewApplicationRequest)

Method Summary
 ApplicationId getApplicationId()
          Get the new ApplicationId allocated by the ResourceManager.
 Resource getMaximumResourceCapability()
          Get the maximum capability for any Resource allocated by the ResourceManager in the cluster.
 Resource getMinimumResourceCapability()
          Get the minimum capability for any Resource allocated by the ResourceManager in the cluster.
 void setApplicationId(ApplicationId applicationId)
           
 void setMaximumResourceCapability(Resource capability)
           
 void setMinimumResourceCapability(Resource capability)
           
 

Method Detail

getApplicationId

@InterfaceAudience.Public
@InterfaceStability.Stable
ApplicationId getApplicationId()
Get the new ApplicationId allocated by the ResourceManager.

Returns:
new ApplicationId allocated by the ResourceManager

setApplicationId

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setApplicationId(ApplicationId applicationId)

getMinimumResourceCapability

@InterfaceAudience.Public
@InterfaceStability.Stable
Resource getMinimumResourceCapability()
Get the minimum capability for any Resource allocated by the ResourceManager in the cluster.

Returns:
minimum capability of allocated resources in the cluster

setMinimumResourceCapability

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setMinimumResourceCapability(Resource capability)

getMaximumResourceCapability

@InterfaceAudience.Public
@InterfaceStability.Stable
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

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setMaximumResourceCapability(Resource capability)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.