T
- The type of instance to be createdS
- the type of configuration to be used when creating the extensionpublic interface ExtensionFactory<T,S extends AlluxioConfiguration>
T
based on configuration S
.Modifier and Type | Method and Description |
---|---|
T |
create(String path,
S conf)
Creates a new extension for the given path.
|
boolean |
supportsPath(String path,
S conf)
Gets whether this factory supports the given path and thus whether calling the
#create(String, S) can succeed for this path. |
T create(String path, S conf)
IllegalArgumentException
is
thrown if this factory does not support extension for the given path or if the configuration
provided is insufficient to create an extension.path
- file path with scheme for which the extension will be createdconf
- configuration object for the extensionboolean supportsPath(String path, S conf)
#create(String, S)
can succeed for this path.path
- file path with scheme for which the extension will be createdconf
- configuration object for the extensionCopyright © 2023. All Rights Reserved.