public static class FileSystem.Factory
extends java.lang.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(javax.security.auth.Subject subject)
Get a FileSystem from the cache with a given subject.
|
static FileSystem |
get(javax.security.auth.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(javax.security.auth.Subject subject)
subject - The subject to use for security-related client operationspublic static FileSystem get(javax.security.auth.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 FileSystemCopyright © 2022. All Rights Reserved.