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()
methods will always guarantee returning a new FileSystem.Modifier and Type | Field and Description |
---|---|
protected static FileSystemCache |
FILESYSTEM_CACHE |
Modifier and Type | Method and Description |
---|---|
static FileSystem |
create() |
static FileSystem |
create(AlluxioConfiguration alluxioConf) |
static FileSystem |
create(ClientContext ctx) |
static FileSystem |
create(FileSystemContext context) |
static FileSystem |
create(FileSystemContext context,
FileSystemOptions options) |
static FileSystem |
get() |
static FileSystem |
get(Subject subject)
Get a FileSystem from the cache with a given subject.
|
static FileSystem |
get(Subject subject,
AlluxioConfiguration conf)
Get a FileSystem from the cache with a given subject.
|
protected static final FileSystemCache FILESYSTEM_CACHE
public static FileSystem get()
public static FileSystem get(Subject subject)
subject
- The subject to use for security-related client operationspublic static FileSystem get(Subject subject, AlluxioConfiguration conf)
subject
- The subject to use for security-related client operationsconf
- the Alluxio configurationpublic static FileSystem create()
public 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 FileSystempublic static FileSystem create(FileSystemContext context, FileSystemOptions options)
context
- the FileSystemContext to use with the FileSystemoptions
- the options associate with the FileSystemCopyright © 2023. All Rights Reserved.