@ThreadSafe public class OzoneUnderFileSystemFactory extends HdfsUnderFileSystemFactory
OzoneUnderFileSystem
.Constructor and Description |
---|
OzoneUnderFileSystemFactory() |
Modifier and Type | Method and Description |
---|---|
UnderFileSystem |
create(String path,
UnderFileSystemConfiguration conf)
Creates a new client for accessing the given path.
|
String |
getVersion()
Get the version supported by this factory.
|
boolean |
supportsPath(String path)
Gets whether this factory supports the given path and thus whether calling the
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration) can succeed for
this path. |
boolean |
supportsPath(String path,
UnderFileSystemConfiguration conf)
Gets whether this factory supports the given path and thus whether calling the
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration) can succeed for
this path. |
public UnderFileSystem create(String path, UnderFileSystemConfiguration conf)
UnderFileSystemFactory
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>
create
in interface UnderFileSystemFactory
create
in class HdfsUnderFileSystemFactory
path
- file pathconf
- configuration object for the UFSpublic boolean supportsPath(String path)
UnderFileSystemFactory
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration)
can succeed for
this path.supportsPath
in interface UnderFileSystemFactory
supportsPath
in class HdfsUnderFileSystemFactory
path
- file pathpublic boolean supportsPath(String path, UnderFileSystemConfiguration conf)
UnderFileSystemFactory
UnderFileSystemFactory.create(String, UnderFileSystemConfiguration)
can succeed for
this path.supportsPath
in interface ExtensionFactory<UnderFileSystem,UnderFileSystemConfiguration>
supportsPath
in interface UnderFileSystemFactory
supportsPath
in class HdfsUnderFileSystemFactory
path
- file pathconf
- configuration object for the UFSpublic String getVersion()
UnderFileSystemFactory
getVersion
in interface UnderFileSystemFactory
getVersion
in class HdfsUnderFileSystemFactory
Copyright © 2023. All Rights Reserved.