Class AdminACLsManager

java.lang.Object
org.apache.hadoop.yarn.security.AdminACLsManager

@Private public class AdminACLsManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    AdminACLsManager(org.apache.hadoop.conf.Configuration conf)
    Constructs and initializes this AdminACLsManager
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether ACLs are enabled
    org.apache.hadoop.security.UserGroupInformation
    Returns the owner
    boolean
    isAdmin(org.apache.hadoop.security.UserGroupInformation callerUGI)
    Returns whether the specified user/group is an administrator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdminACLsManager

      public AdminACLsManager(org.apache.hadoop.conf.Configuration conf)
      Constructs and initializes this AdminACLsManager
      Parameters:
      conf - configuration for this object to use
  • Method Details

    • getOwner

      public org.apache.hadoop.security.UserGroupInformation getOwner()
      Returns the owner
      Returns:
      Current user at the time of object creation
    • areACLsEnabled

      public boolean areACLsEnabled()
      Returns whether ACLs are enabled
      Returns:
      true if ACLs are enabled
      See Also:
      • YarnConfiguration.YARN_ACL_ENABLE
      • YarnConfiguration.DEFAULT_YARN_ACL_ENABLE
    • isAdmin

      public boolean isAdmin(org.apache.hadoop.security.UserGroupInformation callerUGI)
      Returns whether the specified user/group is an administrator
      Parameters:
      callerUGI - user/group to to check
      Returns:
      true if the UserGroupInformation specified is a member of the access control list for administrators