@InterfaceAudience.Public @InterfaceStability.Stable public abstract class RegisterApplicationMasterResponse extends Object
The response sent by the ResourceManager
to a new
ApplicationMaster
on registration.
The response contains critical details such as:
ApplicationACL
s for the application.Constructor and Description |
---|
RegisterApplicationMasterResponse() |
Modifier and Type | Method and Description |
---|---|
abstract Map<ApplicationAccessType,String> |
getApplicationACLs()
Get the
ApplicationACL s for the application. |
abstract ByteBuffer |
getClientToAMTokenMasterKey()
Get ClientToAMToken master key.
|
abstract Resource |
getMaximumResourceCapability()
Get the maximum capability for any
Resource allocated by the
ResourceManager in the cluster. |
static RegisterApplicationMasterResponse |
newInstance(Resource minCapability,
Resource maxCapability,
Map<ApplicationAccessType,String> acls,
ByteBuffer key) |
abstract void |
setApplicationACLs(Map<ApplicationAccessType,String> acls)
Set the
ApplicationACL s for the application. |
abstract void |
setClientToAMTokenMasterKey(ByteBuffer key)
Set ClientToAMToken master key.
|
abstract void |
setMaximumResourceCapability(Resource capability) |
@InterfaceAudience.Private @InterfaceStability.Unstable public static RegisterApplicationMasterResponse newInstance(Resource minCapability, Resource maxCapability, Map<ApplicationAccessType,String> acls, ByteBuffer key)
@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()
ApplicationACL
s for the application.ApplicationACL
s@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setApplicationACLs(Map<ApplicationAccessType,String> acls)
ApplicationACL
s 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)
Copyright © 2013 Apache Software Foundation. All rights reserved.