本文整理了Java中alluxio.security.authorization.Mode.applyFileUMask()
方法的一些代码示例,展示了Mode.applyFileUMask()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mode.applyFileUMask()
方法的具体详情如下:
包路径:alluxio.security.authorization.Mode
类名称:Mode
方法名:applyFileUMask
[英]Applies the default umask for newly created files to this mode.
[中]将新创建文件的默认umask应用于此模式。
代码示例来源:origin: org.alluxio/alluxio-core-server-master
private CreateFileOptions() {
super();
mBlockSizeBytes = Configuration.getBytes(PropertyKey.USER_BLOCK_SIZE_BYTES_DEFAULT);
mTtl = Constants.NO_TTL;
mTtlAction = TtlAction.DELETE;
mMode.applyFileUMask();
mCacheable = false;
}
代码示例来源:origin: org.alluxio/alluxio-core-common
/**
* Constructs a default {@link CreateOptions}.
*/
private CreateOptions() {
mCreateParent = false;
mEnsureAtomic = false;
// default owner and group are null (unset)
mOwner = null;
mGroup = null;
mMode = Mode.defaults().applyFileUMask();
}
代码示例来源:origin: org.alluxio/alluxio-core-server-master
/**
* Constructs an instance of {@link CreateFileOptions} from {@link CreateFileTOptions}. The option
* of permission is constructed with the username obtained from thrift transport.
*
* @param options the {@link CreateFileTOptions} to use
*/
public CreateFileOptions(CreateFileTOptions options) {
this();
if (options != null) {
if (options.isSetCommonOptions()) {
mCommonOptions = new CommonOptions(options.getCommonOptions());
}
mBlockSizeBytes = options.getBlockSizeBytes();
mPersisted = options.isPersisted();
mRecursive = options.isRecursive();
mTtl = options.getTtl();
mTtlAction = TtlAction.fromThrift(options.getTtlAction());
if (SecurityUtils.isAuthenticationEnabled()) {
mOwner = SecurityUtils.getOwnerFromThriftClient();
mGroup = SecurityUtils.getGroupFromThriftClient();
}
if (options.isSetMode()) {
mMode = new Mode(options.getMode());
} else {
mMode.applyFileUMask();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!