org.apache.hadoop.yarn.api.protocolrecords
Class RegisterApplicationMasterResponse

java.lang.Object
  extended by org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse

@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:

See Also:
ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)

Constructor Summary
RegisterApplicationMasterResponse()
           
 
Method Summary
abstract  Map<ApplicationAccessType,String> getApplicationACLs()
          Get the ApplicationACLs 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.
abstract  void setClientToAMTokenMasterKey(ByteBuffer key)
          Set ClientToAMToken master key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterApplicationMasterResponse

public RegisterApplicationMasterResponse()
Method Detail

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

getApplicationACLs

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract Map<ApplicationAccessType,String> getApplicationACLs()
Get the ApplicationACLs for the application.

Returns:
all the ApplicationACLs

getClientToAMTokenMasterKey

@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.


setClientToAMTokenMasterKey

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setClientToAMTokenMasterKey(ByteBuffer key)
Set ClientToAMToken master key.



Copyright © 2013 Apache Software Foundation. All Rights Reserved.