public interface UnderFileSystemFactory extends ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
Modifier and Type | Method and Description |
---|---|
UnderFileSystem |
create(String path,
UnderFileSystemConfiguration conf)
Creates a new client for accessing the given path.
|
boolean |
supportsPath(String path)
Gets whether this factory supports the given path and thus whether calling the
create(String, UnderFileSystemConfiguration) can succeed for this path. |
default boolean |
supportsPath(String path,
UnderFileSystemConfiguration conf)
Gets whether this factory supports the given path and thus whether calling the
create(String, UnderFileSystemConfiguration) can succeed for this path. |
UnderFileSystem create(String path, @Nullable UnderFileSystemConfiguration conf)
IllegalArgumentException
is
thrown if this factory does not support clients for the given path or if the configuration
provided is insufficient to create a client.create
in interface ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
path
- file pathconf
- optional configuration object for the UFS, may be nullboolean supportsPath(String path)
create(String, UnderFileSystemConfiguration)
can succeed for this path.path
- file pathdefault boolean supportsPath(String path, @Nullable UnderFileSystemConfiguration conf)
create(String, UnderFileSystemConfiguration)
can succeed for this path.supportsPath
in interface ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
path
- file pathconf
- optional configuration object for the UFS, may be nullCopyright © 2023. All Rights Reserved.