Tabnine Logo
FSEditLogOp$MkdirOp.setPermissionStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
setPermissionStatus
method
in
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp$MkdirOp

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSEditLogOp$MkdirOp.setPermissionStatus (Showing top 4 results out of 315)

origin: ch.cern.hadoop/hadoop-hdfs

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

origin: io.prestosql.hadoop/hadoop-apache

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

origin: ch.cern.hadoop/hadoop-hdfs

public static FSEditLogOp createMkdirOp(String path) {
 MkdirOp op = MkdirOp.getInstance(new FSEditLogOp.OpInstanceCache())
  .setPath(path)
  .setTimestamp(0)
  .setPermissionStatus(new PermissionStatus(
      "testuser", "testgroup", FsPermission.getDefault()));
 return op;
}

origin: org.apache.hadoop/hadoop-hdfs

/** 
 * Add create directory record to edit log
 */
public void logMkDir(String path, INode newNode) {
 PermissionStatus permissions = newNode.getPermissionStatus();
 MkdirOp op = MkdirOp.getInstance(cache.get())
  .setInodeId(newNode.getId())
  .setPath(path)
  .setTimestamp(newNode.getModificationTime())
  .setPermissionStatus(permissions);
 AclFeature f = newNode.getAclFeature();
 if (f != null) {
  op.setAclEntries(AclStorage.readINodeLogicalAcl(newNode));
 }
 XAttrFeature x = newNode.getXAttrFeature();
 if (x != null) {
  op.setXAttrs(x.getXAttrs());
 }
 logEdit(op);
}

org.apache.hadoop.hdfs.server.namenodeFSEditLogOp$MkdirOpsetPermissionStatus

Popular methods of FSEditLogOp$MkdirOp

  • getInstance
  • setPath
  • setTimestamp
  • <init>
  • permissionStatusFromXml
  • setAclEntries
  • setInodeId
  • setXAttrs
  • set

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JList (javax.swing)
  • Best plugins for Eclipse
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