@InterfaceAudience.Private public class AdminACLsManager extends Object
Constructor and Description |
---|
AdminACLsManager(Configuration conf)
Constructs and initializes this AdminACLsManager
|
Modifier and Type | Method and Description |
---|---|
boolean |
areACLsEnabled()
Returns whether ACLs are enabled
|
boolean |
checkAccess(UserGroupInformation callerUGI)
Returns whether the specified user/group has administrator access
|
AccessControlList |
getAdminAcl()
Returns the internal structure used to maintain administrator ACLs
|
UserGroupInformation |
getOwner()
Returns the owner
|
boolean |
isAdmin(UserGroupInformation callerUGI)
Returns whether the specified user/group is an administrator
|
public AdminACLsManager(Configuration conf)
conf
- configuration for this object to usepublic UserGroupInformation getOwner()
public boolean areACLsEnabled()
YarnConfiguration.YARN_ACL_ENABLE
,
YarnConfiguration.DEFAULT_YARN_ACL_ENABLE
public AccessControlList getAdminAcl()
public boolean isAdmin(UserGroupInformation callerUGI)
callerUGI
- user/group to to checkpublic boolean checkAccess(UserGroupInformation callerUGI)
callerUGI
- user/group to to checkgetAdminAcl()
,
areACLsEnabled()
Copyright © 2013 Apache Software Foundation. All rights reserved.