public static class FileSystem.Factory extends Object
FileSystem
. Calling any of the get()
methods in this class
will attempt to return a cached instance of an Alluxio FileSystem
. Using any of the
create(alluxio.conf.AlluxioConfiguration)
methods will always guarantee returning a new FileSystem.Modifier and Type | Field and Description |
---|---|
protected static FileSystem.Cache |
FILESYSTEM_CACHE |
Modifier and Type | Method and Description |
---|---|
static FileSystem |
create(AlluxioConfiguration alluxioConf) |
static FileSystem |
create(ClientContext ctx) |
static FileSystem |
create(FileSystemContext context) |
static FileSystem |
get() |
static FileSystem |
get(Subject subject)
Get a FileSystem from the cache with a given subject.
|
protected static final FileSystem.Cache FILESYSTEM_CACHE
public static FileSystem get()
public static FileSystem get(Subject subject)
subject
- The subject to use for security-related client operationspublic static FileSystem create(AlluxioConfiguration alluxioConf)
alluxioConf
- the configuration to utilize with the FileSystempublic static FileSystem create(ClientContext ctx)
ctx
- the context with the subject and configuration to utilize with the FileSystempublic static FileSystem create(FileSystemContext context)
context
- the FileSystemContext to use with the FileSystemCopyright © 2023. All Rights Reserved.