@InterfaceAudience.Public @InterfaceStability.Stable public abstract class RegisterApplicationMasterResponse extends Object
ResourceManager to a new
 ApplicationMaster on registration.
 The response contains critical details such as:
ApplicationACLs for the application.| Constructor and Description | 
|---|
| RegisterApplicationMasterResponse() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Map<ApplicationAccessType,String> | getApplicationACLs()Get the  ApplicationACLs for the application. | 
| abstract ByteBuffer | getClientToAMTokenMasterKey()Get ClientToAMToken master key. | 
| abstract List<Container> | getContainersFromPreviousAttempts()
 Get the list of running containers as viewed by
  ResourceManagerfrom previous application attempts. | 
| abstract Resource | getMaximumResourceCapability()Get the maximum capability for any  Resourceallocated by theResourceManagerin the cluster. | 
| abstract List<NMToken> | getNMTokensFromPreviousAttempts()Get the list of NMTokens for communicating with the NMs where the
 containers of previous application attempts are running. | 
| abstract String | getQueue()Get the queue that the application was placed in. | 
| abstract Map<String,Resource> | getResourceProfiles()Get list of supported resource profiles from RM. | 
| abstract List<ResourceTypeInfo> | getResourceTypes()Get available resource types supported by RM. | 
| abstract EnumSet<org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> | getSchedulerResourceTypes()Get a set of the resource types considered by the scheduler. | 
| static RegisterApplicationMasterResponse | newInstance(Resource minCapability,
           Resource maxCapability,
           Map<ApplicationAccessType,String> acls,
           ByteBuffer key,
           List<Container> containersFromPreviousAttempt,
           String queue,
           List<NMToken> nmTokensFromPreviousAttempts) | 
| abstract void | setApplicationACLs(Map<ApplicationAccessType,String> acls)Set the  ApplicationACLs for the application. | 
| abstract void | setClientToAMTokenMasterKey(ByteBuffer key)Set ClientToAMToken master key. | 
| abstract void | setContainersFromPreviousAttempts(List<Container> containersFromPreviousAttempt)Set the list of running containers as viewed by
  ResourceManagerfrom previous application attempts. | 
| abstract void | setMaximumResourceCapability(Resource capability) | 
| abstract void | setNMTokensFromPreviousAttempts(List<NMToken> nmTokens)Set the list of NMTokens for communicating with the NMs where the the
 containers of previous application attempts are running. | 
| abstract void | setQueue(String queue)Set the queue that the application was placed in. | 
| abstract void | setResourceProfiles(Map<String,Resource> profiles)Set supported resource profiles for RM. | 
| abstract void | setResourceTypes(List<ResourceTypeInfo> types)Set the resource types used by RM. | 
| abstract void | setSchedulerResourceTypes(EnumSet<org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> types)Set the resource types used by the scheduler. | 
@InterfaceAudience.Private @InterfaceStability.Unstable public static RegisterApplicationMasterResponse newInstance(Resource minCapability, Resource maxCapability, Map<ApplicationAccessType,String> acls, ByteBuffer key, List<Container> containersFromPreviousAttempt, String queue, List<NMToken> nmTokensFromPreviousAttempts)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getMaximumResourceCapability()
Resource allocated by the 
 ResourceManager in the cluster.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setMaximumResourceCapability(Resource capability)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Map<ApplicationAccessType,String> getApplicationACLs()
ApplicationACLs for the application.ApplicationACLs@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setApplicationACLs(Map<ApplicationAccessType,String> acls)
ApplicationACLs for the application.acls - @InterfaceAudience.Public @InterfaceStability.Stable public abstract ByteBuffer getClientToAMTokenMasterKey()
Get ClientToAMToken master key.
The ClientToAMToken master key is sent to ApplicationMaster
 by ResourceManager via RegisterApplicationMasterResponse
 , used to verify corresponding ClientToAMToken.
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setClientToAMTokenMasterKey(ByteBuffer key)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getQueue()
Get the queue that the application was placed in.
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setQueue(String queue)
Set the queue that the application was placed in.
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract List<Container> getContainersFromPreviousAttempts()
 Get the list of running containers as viewed by
 ResourceManager from previous application attempts.
 
ResourceManager from previous application attemptsgetNMTokensFromPreviousAttempts()@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setContainersFromPreviousAttempts(List<Container> containersFromPreviousAttempt)
ResourceManager from previous application attempts.containersFromPreviousAttempt - the list of running containers as viewed by
          ResourceManager from previous application attempts.@InterfaceAudience.Public @InterfaceStability.Stable public abstract List<NMToken> getNMTokensFromPreviousAttempts()
getContainersFromPreviousAttempts()@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNMTokensFromPreviousAttempts(List<NMToken> nmTokens)
nmTokens - the list of NMTokens for communicating with the NMs where the
          containers of previous application attempts are running.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract EnumSet<org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> getSchedulerResourceTypes()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setSchedulerResourceTypes(EnumSet<org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> types)
types - a set of the resource types that the scheduler considers during
          scheduling@InterfaceAudience.Public @InterfaceStability.Unstable public abstract Map<String,Resource> getResourceProfiles()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setResourceProfiles(Map<String,Resource> profiles)
profiles - a map of resource profiles with its capabilities.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract List<ResourceTypeInfo> getResourceTypes()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setResourceTypes(List<ResourceTypeInfo> types)
types - a set of the resource types supported by RM.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.