Tabnine Logo
FSEditLogOp.fsPermissionFromXml
Code IndexAdd Tabnine to your IDE (free)

How to use
fsPermissionFromXml
method
in
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.fsPermissionFromXml (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

public static PermissionStatus permissionStatusFromXml(Stanza st)
  throws InvalidXmlException {
 Stanza status = st.getChildren("PERMISSION_STATUS").get(0);
 String username = status.getValue("USERNAME");
 String groupname = status.getValue("GROUPNAME");
 FsPermission mode = fsPermissionFromXml(status);
 return new PermissionStatus(username, groupname, mode);
}
origin: org.apache.hadoop/hadoop-hdfs

public static CachePoolInfo readCachePoolInfo(Stanza st)
  throws InvalidXmlException {
 String poolName = st.getValue("POOLNAME");
 CachePoolInfo info = new CachePoolInfo(poolName);
 if (st.hasChildren("OWNERNAME")) {
  info.setOwnerName(st.getValue("OWNERNAME"));
 }
 if (st.hasChildren("GROUPNAME")) {
  info.setGroupName(st.getValue("GROUPNAME"));
 }
 if (st.hasChildren("MODE")) {
  info.setMode(FSEditLogOp.fsPermissionFromXml(st));
 }
 if (st.hasChildren("LIMIT")) {
  info.setLimit(Long.parseLong(st.getValue("LIMIT")));
 }
 if (st.hasChildren("MAXRELATIVEEXPIRY")) {
  info.setMaxRelativeExpiryMs(
    Long.parseLong(st.getValue("MAXRELATIVEEXPIRY")));
 }
 if (st.hasChildren("DEFAULTREPLICATION")) {
  info.setDefaultReplication(Short.parseShort(st
    .getValue("DEFAULTREPLICATION")));
 }
 return info;
}
origin: ch.cern.hadoop/hadoop-hdfs

public static PermissionStatus permissionStatusFromXml(Stanza st)
  throws InvalidXmlException {
 Stanza status = st.getChildren("PERMISSION_STATUS").get(0);
 String username = status.getValue("USERNAME");
 String groupname = status.getValue("GROUPNAME");
 FsPermission mode = fsPermissionFromXml(status);
 return new PermissionStatus(username, groupname, mode);
}
origin: io.prestosql.hadoop/hadoop-apache

public static PermissionStatus permissionStatusFromXml(Stanza st)
  throws InvalidXmlException {
 Stanza status = st.getChildren("PERMISSION_STATUS").get(0);
 String username = status.getValue("USERNAME");
 String groupname = status.getValue("GROUPNAME");
 FsPermission mode = fsPermissionFromXml(status);
 return new PermissionStatus(username, groupname, mode);
}
origin: ch.cern.hadoop/hadoop-hdfs

public static CachePoolInfo readCachePoolInfo(Stanza st)
  throws InvalidXmlException {
 String poolName = st.getValue("POOLNAME");
 CachePoolInfo info = new CachePoolInfo(poolName);
 if (st.hasChildren("OWNERNAME")) {
  info.setOwnerName(st.getValue("OWNERNAME"));
 }
 if (st.hasChildren("GROUPNAME")) {
  info.setGroupName(st.getValue("GROUPNAME"));
 }
 if (st.hasChildren("MODE")) {
  info.setMode(FSEditLogOp.fsPermissionFromXml(st));
 }
 if (st.hasChildren("LIMIT")) {
  info.setLimit(Long.parseLong(st.getValue("LIMIT")));
 }
 if (st.hasChildren("MAXRELATIVEEXPIRY")) {
  info.setMaxRelativeExpiryMs(
    Long.parseLong(st.getValue("MAXRELATIVEEXPIRY")));
 }
 return info;
}
origin: io.prestosql.hadoop/hadoop-apache

public static CachePoolInfo readCachePoolInfo(Stanza st)
  throws InvalidXmlException {
 String poolName = st.getValue("POOLNAME");
 CachePoolInfo info = new CachePoolInfo(poolName);
 if (st.hasChildren("OWNERNAME")) {
  info.setOwnerName(st.getValue("OWNERNAME"));
 }
 if (st.hasChildren("GROUPNAME")) {
  info.setGroupName(st.getValue("GROUPNAME"));
 }
 if (st.hasChildren("MODE")) {
  info.setMode(FSEditLogOp.fsPermissionFromXml(st));
 }
 if (st.hasChildren("LIMIT")) {
  info.setLimit(Long.parseLong(st.getValue("LIMIT")));
 }
 if (st.hasChildren("MAXRELATIVEEXPIRY")) {
  info.setMaxRelativeExpiryMs(
    Long.parseLong(st.getValue("MAXRELATIVEEXPIRY")));
 }
 return info;
}
org.apache.hadoop.hdfs.server.namenodeFSEditLogOpfsPermissionFromXml

Popular methods of FSEditLogOp

  • setTransactionId
  • getTransactionId
  • readFields
  • writeFields
  • blockFromXml
  • blockToXml
  • decodeXml
  • delegationKeyToXml
  • delegationTokenToXml
  • fromXml
  • fsActionFromXml
  • fsActionToXml
  • fsActionFromXml,
  • fsActionToXml,
  • fsPermissionToXml,
  • hasRpcIds,
  • hasTransactionId,
  • outputToXml,
  • permissionStatusToXml,
  • reset,
  • resetSubFields

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • From CI to AI: The AI layer in your organization
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