org.apache.hadoop.yarn.api.protocolrecords
Class GetNewApplicationResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse
@InterfaceAudience.Public
@InterfaceStability.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.
- See Also:
ApplicationClientProtocol.getNewApplication(GetNewApplicationRequest)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetNewApplicationResponse
public GetNewApplicationResponse()
newInstance
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static GetNewApplicationResponse newInstance(ApplicationId applicationId,
Resource minCapability,
Resource maxCapability)
getApplicationId
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ApplicationId getApplicationId()
- Get the new
ApplicationId allocated by the
ResourceManager.
- Returns:
- new
ApplicationId allocated by the
ResourceManager
setApplicationId
@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setApplicationId(ApplicationId applicationId)
getMaximumResourceCapability
@InterfaceAudience.Public
@InterfaceStability.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
@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setMaximumResourceCapability(Resource capability)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.