public class S3FileSystemFactory extends Object implements FileSystemFactory
Modifier and Type | Field and Description |
---|---|
static ConfigOption<String> |
ENTROPY_INJECT_KEY_OPTION
The substring to be replaced by random entropy in checkpoint paths.
|
static ConfigOption<Integer> |
ENTROPY_INJECT_LENGTH_OPTION
The number of entropy characters, in case entropy injection is configured.
|
Constructor and Description |
---|
S3FileSystemFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration config)
Applies the given configuration to this factory.
|
FileSystem |
create(URI fsUri)
Creates a new file system for the given file system URI.
|
String |
getScheme()
Gets the scheme of the file system created by this factory.
|
public static final ConfigOption<String> ENTROPY_INJECT_KEY_OPTION
public static final ConfigOption<Integer> ENTROPY_INJECT_LENGTH_OPTION
public String getScheme()
FileSystemFactory
getScheme
in interface FileSystemFactory
public void configure(Configuration config)
FileSystemFactory
FileSystemFactory.create(URI)
should take the configuration into
account.configure
in interface FileSystemFactory
config
- The configuration to apply.public FileSystem create(URI fsUri) throws IOException
FileSystemFactory
create
in interface FileSystemFactory
fsUri
- The URI that describes the file system.IOException
- Thrown if the file system could not be instantiated.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.