Package alluxio.cli
Class UnderFileSystemCommonOperations
- java.lang.Object
-
- alluxio.cli.UnderFileSystemCommonOperations
-
public final class UnderFileSystemCommonOperations extends java.lang.ObjectExamples for under filesystem common operations. The class should contain all the Alluxio ufs semantics.
-
-
Constructor Summary
Constructors Constructor Description UnderFileSystemCommonOperations(java.lang.String ufsPath, java.lang.String topLevelTestDirectory, alluxio.underfs.UnderFileSystem ufs, alluxio.conf.InstancedConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAtomicTest()Test for creating file atomic.voidcreateDeleteFileConjuctionTest()Test for creating and deleting file conjunction.voidcreateEmptyTest()Test for creating empty file.voidcreateNoParentTest()Test for creating file without parent.voidcreateOpenAtPositionTest()Test for creating file and opening at position.voidcreateOpenEmptyTest()Test for creating and opening empty file.voidcreateOpenExistingLargeFileTest()Test for creating and open existing large file.voidcreateOpenLargeTest()Test for creating and opening large file.voidcreateOpenSkip()Test for create file, open and seek.voidcreateOpenTest()Test for creating and opening file.voidcreateParentTest()Test for creating file with parent.voidcreateThenDeleteExistingDirectoryTest()Test for creating and deleting existing directory.voidcreateThenGetExistingDirectoryStatusTest()Test for getting existing directory status.voidcreateThenGetExistingFileStatusTest()Test for getting existing file status.voidcreateThenGetExistingStatusTest()Test for getting existing status.voiddeleteDirTest()Test for deleting directory.voiddeleteFileTest()Test for deleting file.voiddeleteLargeDirectoryTest()Test for deleting large directory.voidexistsTest()Test for checking file existence.voidgetDirectoryStatusTest()Test for getting directory status.voidgetFileSizeTest()Test for getting file size.voidgetFileStatusTest()Test for getting file status.voidgetModTimeTest()Test for getting modification time.voidgetNonExistingDirectoryStatusTest()Test for getting status of non-existent directory.voidgetNonExistingFileStatusTest()Test for getting status of non-existent file.voidgetNonExistingPathStatusTest()Test for getting status of non-existent path.voidisFileTest()Test for checking file is actual file.voidlistLargeDirectoryTest()Test for listing large directory.voidlistStatusEmptyTest()Test for listing empty directory.voidlistStatusFileTest()Test for listing status on file.voidlistStatusRecursiveTest()Test for listing status recursively.voidlistStatusRootTest()Test for listing status of the root directory of the UFS.voidlistStatusTest()Test for listing status.voidmkdirsTest()Test for creating directory.voidobjectCommonPrefixesIsDirectoryTest()Test for checking directory in object storage.voidobjectCommonPrefixesListStatusNonRecursiveTest()Test for listing status non recursively in object storage.voidobjectCommonPrefixesListStatusRecursiveTest()Test for listing status recursively in object storage.voidobjectNestedDirsListStatusRecursiveTest()Test for listing status recursively in nested directory in object storage.voidrenameDirectoryDeepTest()Test for renaming deep directory.voidrenameDirectoryTest()Test for renaming directory.voidrenameFileTest()Test for renaming file.voidrenameLargeDirectoryTest()Test for renaming large directory.voidrenameRenamableDirectoryTest()Test for renaming renamable directory.voidrenameRenamableFileTest()Test for renaming renamable file.
-
-
-
Constructor Detail
-
UnderFileSystemCommonOperations
public UnderFileSystemCommonOperations(java.lang.String ufsPath, java.lang.String topLevelTestDirectory, alluxio.underfs.UnderFileSystem ufs, alluxio.conf.InstancedConfiguration configuration)- Parameters:
ufsPath- the under filesystem pathtopLevelTestDirectory- the top level test directoryufs- the under filesystemconfiguration- the instance configuration
-
-
Method Detail
-
createAtomicTest
public void createAtomicTest() throws java.io.IOExceptionTest for creating file atomic.- Throws:
java.io.IOException
-
createEmptyTest
public void createEmptyTest() throws java.io.IOExceptionTest for creating empty file.- Throws:
java.io.IOException
-
createNoParentTest
public void createNoParentTest() throws java.io.IOExceptionTest for creating file without parent.- Throws:
java.io.IOException
-
createParentTest
public void createParentTest() throws java.io.IOExceptionTest for creating file with parent.- Throws:
java.io.IOException
-
createOpenTest
public void createOpenTest() throws java.io.IOExceptionTest for creating and opening file.- Throws:
java.io.IOException
-
createOpenEmptyTest
public void createOpenEmptyTest() throws java.io.IOExceptionTest for creating and opening empty file.- Throws:
java.io.IOException
-
createOpenAtPositionTest
public void createOpenAtPositionTest() throws java.io.IOExceptionTest for creating file and opening at position.- Throws:
java.io.IOException
-
createOpenLargeTest
public void createOpenLargeTest() throws java.io.IOExceptionTest for creating and opening large file.- Throws:
java.io.IOException
-
createOpenExistingLargeFileTest
public void createOpenExistingLargeFileTest() throws java.io.IOExceptionTest for creating and open existing large file.- Throws:
java.io.IOException
-
createOpenSkip
public void createOpenSkip() throws java.io.IOExceptionTest for create file, open and seek.- Throws:
java.io.IOException
-
deleteFileTest
public void deleteFileTest() throws java.io.IOExceptionTest for deleting file.- Throws:
java.io.IOException
-
deleteDirTest
public void deleteDirTest() throws java.io.IOExceptionTest for deleting directory.- Throws:
java.io.IOException
-
deleteLargeDirectoryTest
public void deleteLargeDirectoryTest() throws java.lang.ExceptionTest for deleting large directory.- Throws:
java.lang.Exception
-
createDeleteFileConjuctionTest
public void createDeleteFileConjuctionTest() throws java.io.IOExceptionTest for creating and deleting file conjunction.- Throws:
java.io.IOException
-
createThenDeleteExistingDirectoryTest
public void createThenDeleteExistingDirectoryTest() throws java.io.IOExceptionTest for creating and deleting existing directory.- Throws:
java.io.IOException
-
existsTest
public void existsTest() throws java.io.IOExceptionTest for checking file existence.- Throws:
java.io.IOException
-
getDirectoryStatusTest
public void getDirectoryStatusTest() throws java.io.IOExceptionTest for getting directory status.- Throws:
java.io.IOException
-
createThenGetExistingDirectoryStatusTest
public void createThenGetExistingDirectoryStatusTest() throws java.io.IOExceptionTest for getting existing directory status.- Throws:
java.io.IOException
-
getFileSizeTest
public void getFileSizeTest() throws java.io.IOExceptionTest for getting file size.- Throws:
java.io.IOException
-
createThenGetExistingFileStatusTest
public void createThenGetExistingFileStatusTest() throws java.io.IOExceptionTest for getting existing file status.- Throws:
java.io.IOException
-
getFileStatusTest
public void getFileStatusTest() throws java.io.IOExceptionTest for getting file status.- Throws:
java.io.IOException
-
createThenGetExistingStatusTest
public void createThenGetExistingStatusTest() throws java.io.IOExceptionTest for getting existing status.- Throws:
java.io.IOException
-
getModTimeTest
public void getModTimeTest() throws java.io.IOExceptionTest for getting modification time.- Throws:
java.io.IOException
-
getNonExistingDirectoryStatusTest
public void getNonExistingDirectoryStatusTest() throws java.io.IOExceptionTest for getting status of non-existent directory.- Throws:
java.io.IOException
-
getNonExistingFileStatusTest
public void getNonExistingFileStatusTest() throws java.io.IOExceptionTest for getting status of non-existent file.- Throws:
java.io.IOException
-
getNonExistingPathStatusTest
public void getNonExistingPathStatusTest() throws java.io.IOExceptionTest for getting status of non-existent path.- Throws:
java.io.IOException
-
isFileTest
public void isFileTest() throws java.io.IOExceptionTest for checking file is actual file.- Throws:
java.io.IOException
-
listStatusRootTest
public void listStatusRootTest() throws java.io.IOExceptionTest for listing status of the root directory of the UFS.- Throws:
java.io.IOException
-
listStatusTest
public void listStatusTest() throws java.io.IOExceptionTest for listing status.- Throws:
java.io.IOException
-
listStatusEmptyTest
public void listStatusEmptyTest() throws java.io.IOExceptionTest for listing empty directory.- Throws:
java.io.IOException
-
listStatusFileTest
public void listStatusFileTest() throws java.io.IOExceptionTest for listing status on file.- Throws:
java.io.IOException
-
listLargeDirectoryTest
public void listLargeDirectoryTest() throws java.lang.ExceptionTest for listing large directory.- Throws:
java.lang.Exception
-
listStatusRecursiveTest
public void listStatusRecursiveTest() throws java.io.IOExceptionTest for listing status recursively.- Throws:
java.io.IOException
-
mkdirsTest
public void mkdirsTest() throws java.io.IOExceptionTest for creating directory.- Throws:
java.io.IOException
-
objectCommonPrefixesIsDirectoryTest
public void objectCommonPrefixesIsDirectoryTest() throws java.io.IOExceptionTest for checking directory in object storage.- Throws:
java.io.IOException
-
objectCommonPrefixesListStatusNonRecursiveTest
public void objectCommonPrefixesListStatusNonRecursiveTest() throws java.io.IOExceptionTest for listing status non recursively in object storage.- Throws:
java.io.IOException
-
objectCommonPrefixesListStatusRecursiveTest
public void objectCommonPrefixesListStatusRecursiveTest() throws java.io.IOExceptionTest for listing status recursively in object storage.- Throws:
java.io.IOException
-
objectNestedDirsListStatusRecursiveTest
public void objectNestedDirsListStatusRecursiveTest() throws java.io.IOExceptionTest for listing status recursively in nested directory in object storage.- Throws:
java.io.IOException
-
renameFileTest
public void renameFileTest() throws java.io.IOExceptionTest for renaming file.- Throws:
java.io.IOException
-
renameRenamableFileTest
public void renameRenamableFileTest() throws java.io.IOExceptionTest for renaming renamable file.- Throws:
java.io.IOException
-
renameDirectoryTest
public void renameDirectoryTest() throws java.io.IOExceptionTest for renaming directory.- Throws:
java.io.IOException
-
renameDirectoryDeepTest
public void renameDirectoryDeepTest() throws java.io.IOExceptionTest for renaming deep directory.- Throws:
java.io.IOException
-
renameRenamableDirectoryTest
public void renameRenamableDirectoryTest() throws java.io.IOExceptionTest for renaming renamable directory.- Throws:
java.io.IOException
-
renameLargeDirectoryTest
public void renameLargeDirectoryTest() throws java.lang.ExceptionTest for renaming large directory.- Throws:
java.lang.Exception
-
-