Class GetNewApplicationResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ApplicationIdGet the newApplicationIdallocated by theResourceManager.abstract ResourceGet the maximum capability for anyResourceallocated by theResourceManagerin the cluster.static GetNewApplicationResponsenewInstance(ApplicationId applicationId, Resource minCapability, Resource maxCapability) abstract voidsetApplicationId(ApplicationId applicationId) abstract voidsetMaximumResourceCapability(Resource capability)
-
Constructor Details
-
GetNewApplicationResponse
public GetNewApplicationResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static GetNewApplicationResponse newInstance(ApplicationId applicationId, Resource minCapability, Resource maxCapability) -
getApplicationId
Get the newApplicationIdallocated by theResourceManager.- Returns:
- new
ApplicationIdallocated by theResourceManager
-
setApplicationId
-
getMaximumResourceCapability
Get the maximum capability for anyResourceallocated by theResourceManagerin the cluster.- Returns:
- maximum capability of allocated resources in the cluster
-
setMaximumResourceCapability
-