public class LaunchUserGroupAuthPolicy extends Object implements AuthPolicy
Modifier and Type | Field and Description |
---|---|
protected FileSystem |
mFileSystem |
protected Optional<FuseFileSystem> |
mFuseFileSystem |
Modifier | Constructor and Description |
---|---|
protected |
LaunchUserGroupAuthPolicy(FileSystem fileSystem,
Optional<FuseFileSystem> fuseFileSystem) |
Modifier and Type | Method and Description |
---|---|
static LaunchUserGroupAuthPolicy |
create(FileSystem fileSystem,
AlluxioConfiguration conf,
Optional<FuseFileSystem> fuseFileSystem)
Creates a new launch user auth policy.
|
Optional<Long> |
getGid() |
Optional<Long> |
getUid() |
void |
init()
Initialize the authentication policy.
|
void |
setUserGroup(AlluxioURI uri,
long uid,
long gid)
Sets user and group based on user group input.
|
void |
setUserGroupIfNeeded(AlluxioURI uri)
Sets user and group based on authentication policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGid, getUid
protected final FileSystem mFileSystem
protected final Optional<FuseFileSystem> mFuseFileSystem
protected LaunchUserGroupAuthPolicy(FileSystem fileSystem, Optional<FuseFileSystem> fuseFileSystem)
fileSystem
- the Alluxio file systemfuseFileSystem
- the FuseFileSystempublic static LaunchUserGroupAuthPolicy create(FileSystem fileSystem, AlluxioConfiguration conf, Optional<FuseFileSystem> fuseFileSystem)
fileSystem
- file systemconf
- the Alluxio configurationfuseFileSystem
- fuse file systempublic void init()
AuthPolicy
init
in interface AuthPolicy
public void setUserGroupIfNeeded(AlluxioURI uri)
AuthPolicy
setUserGroupIfNeeded
in interface AuthPolicy
uri
- the path uripublic void setUserGroup(AlluxioURI uri, long uid, long gid)
AuthPolicy
setUserGroup
in interface AuthPolicy
uri
- the path uriuid
- the user id to setgid
- the gid to setpublic Optional<Long> getUid()
getUid
in interface AuthPolicy
public Optional<Long> getGid()
getGid
in interface AuthPolicy
Copyright © 2023. All Rights Reserved.