Tabnine Logo
FSPermissionChecker.checkIsDirectory
Code IndexAdd Tabnine to your IDE (free)

How to use
checkIsDirectory
method
in
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkIsDirectory (Showing top 2 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/** Guarded by {@link FSNamesystem#readLock()}
 * @throws AccessControlException
 * @throws ParentNotDirectoryException
 * @throws UnresolvedPathException
 */
private void checkTraverse(INodeAttributes[] inodeAttrs, INode[] inodes,
  byte[][] components, int last) throws AccessControlException,
    UnresolvedPathException, ParentNotDirectoryException {
 for (int i=0; i <= last; i++) {
  checkIsDirectory(inodes[i], components, i);
  check(inodeAttrs, components, i, FsAction.EXECUTE);
 }
}
origin: org.apache.hadoop/hadoop-hdfs

private static void checkSimpleTraverse(INodesInPath iip)
  throws UnresolvedPathException, ParentNotDirectoryException {
 byte[][] components = iip.getPathComponents();
 for (int i=0; i < iip.length() - 1; i++) {
  INode inode = iip.getINode(i);
  if (inode == null) {
   break;
  }
  checkIsDirectory(inode, components, i);
 }
}
org.apache.hadoop.hdfs.server.namenodeFSPermissionCheckercheckIsDirectory

Popular methods of FSPermissionChecker

  • checkPermission
    Check whether current user have permissions to access the path. Traverse is always checked. Parent p
  • <init>
  • check
    Guarded by FSNamesystem#readLock()
  • checkOwner
    Guarded by FSNamesystem#readLock()
  • checkSubAccess
    Guarded by FSNamesystem#readLock()
  • checkTraverse
    Guarded by FSNamesystem#readLock()
  • checkStickyBit
    Guarded by FSNamesystem#readLock()
  • checkSuperuserPrivilege
    Verify if the caller has the required permission. This will result into an exception if the caller i
  • getAccessControlEnforcer
  • getAttributesProvider
  • getINodeAttrs
  • getUser
  • getINodeAttrs,
  • getUser,
  • hasAclPermission,
  • hasPermission,
  • isSuperUser,
  • toAccessControlString,
  • constructPath,
  • containsGroup,
  • isMemberOfGroup

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now