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