Package alluxio.underfs
Class UnderFileSystem.Factory
- java.lang.Object
-
- alluxio.underfs.UnderFileSystem.Factory
-
- Enclosing interface:
- UnderFileSystem
public static class UnderFileSystem.Factory extends java.lang.Object
The factory for theUnderFileSystem
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnderFileSystem
create(java.lang.String path, AlluxioConfiguration conf)
Creates theUnderFileSystem
instance according to its UFS path.static UnderFileSystem
create(java.lang.String path, UnderFileSystemConfiguration ufsConf)
Creates a client for operations involved with the under file system.static UnderFileSystem
createForRoot(AlluxioConfiguration conf)
static UnderFileSystem
createWithRecorder(java.lang.String path, UnderFileSystemConfiguration ufsConf, Recorder recorder)
Creates a client for operations involved with the under file system and record the execution process.
-
-
-
Method Detail
-
create
public static UnderFileSystem create(java.lang.String path, AlluxioConfiguration conf)
Creates theUnderFileSystem
instance according to its UFS path. This method should only be used for journal operations and tests.- Parameters:
path
- journal path in ufsconf
- the configuration object w/o mount specific options- Returns:
- the instance of under file system for Alluxio journal directory
-
create
public static UnderFileSystem create(java.lang.String path, UnderFileSystemConfiguration ufsConf)
Creates a client for operations involved with the under file system. AnIllegalArgumentException
is thrown if there is no under file system for the given path or if no under file system could successfully be created.- Parameters:
path
- pathufsConf
- configuration object for the UFS- Returns:
- client for the under file system
-
createWithRecorder
public static UnderFileSystem createWithRecorder(java.lang.String path, UnderFileSystemConfiguration ufsConf, Recorder recorder)
Creates a client for operations involved with the under file system and record the execution process. AnIllegalArgumentException
is thrown if there is no under file system for the given path or if no under file system could successfully be created.- Parameters:
path
- pathufsConf
- configuration object for the UFSrecorder
- recorder used to record the detailed execution process- Returns:
- client for the under file system
-
createForRoot
public static UnderFileSystem createForRoot(AlluxioConfiguration conf)
- Parameters:
conf
- configuration- Returns:
- the instance of under file system for Alluxio root directory
-
-