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 | Method and Description |
---|---|
static FileSystem |
create() |
static FileSystem |
create(alluxio.conf.AlluxioConfiguration alluxioConf) |
static FileSystem |
create(alluxio.ClientContext ctx) |
static FileSystem |
create(alluxio.client.file.FileSystemContext context) |
static FileSystem |
create(alluxio.client.file.FileSystemContext context,
alluxio.client.file.options.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,
alluxio.conf.AlluxioConfiguration conf)
Get a FileSystem from the cache with a given subject.
|
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, alluxio.conf.AlluxioConfiguration conf)
subject
- The subject to use for security-related client operationsconf
- the Alluxio configurationpublic static FileSystem create()
public static FileSystem create(alluxio.conf.AlluxioConfiguration alluxioConf)
alluxioConf
- the configuration to utilize with the FileSystempublic static FileSystem create(alluxio.ClientContext ctx)
ctx
- the context with the subject and configuration to utilize with the FileSystempublic static FileSystem create(alluxio.client.file.FileSystemContext context)
context
- the FileSystemContext to use with the FileSystempublic static FileSystem create(alluxio.client.file.FileSystemContext context, alluxio.client.file.options.FileSystemOptions options)
context
- the FileSystemContext to use with the FileSystemoptions
- the options associate with the FileSystemCopyright © 2023. All Rights Reserved.