@Test public void defaults() throws IOException { MkdirsOptions options = MkdirsOptions.defaults(mConfiguration); assertTrue(options.getCreateParent()); assertNull(options.getOwner()); assertNull(options.getGroup()); String umask = mConfiguration.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK); assertEquals(ModeUtils.applyDirectoryUMask(Mode.defaults(), umask), options.getMode()); }
public static MkdirsOptions defaults(AlluxioConfiguration conf) { return new MkdirsOptions(conf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)); }
MkdirsOptions { public static MkdirsOptions defaults(AlluxioConfiguration conf) { return new MkdirsOptions(conf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)); } }
MkdirsOptions { public static MkdirsOptions defaults(AlluxioConfiguration conf) { return new MkdirsOptions(conf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)); } private  MkdirsOptions(String authUmask); }
MkdirsOptions { public static MkdirsOptions defaults(AlluxioConfiguration conf) { return new MkdirsOptions(conf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)); } private  MkdirsOptions(String authUmask); static MkdirsOptions defaults(AlluxioConfiguration conf); boolean getCreateParent(); String getOwner(); String getGroup(); Mode getMode(); MkdirsOptions setCreateParent(boolean createParent); MkdirsOptions setOwner(String owner); MkdirsOptions setGroup(String group); MkdirsOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MkdirsOptions { public static MkdirsOptions defaults(AlluxioConfiguration conf) { return new MkdirsOptions(conf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)); } private  MkdirsOptions(String authUmask); static MkdirsOptions defaults(AlluxioConfiguration conf); boolean getCreateParent(); String getOwner(); String getGroup(); Mode getMode(); MkdirsOptions setCreateParent(boolean createParent); MkdirsOptions setOwner(String owner); MkdirsOptions setGroup(String group); MkdirsOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }