Package alluxio.cli

Class UnderFileSystemCommonOperations


  • public final class UnderFileSystemCommonOperations
    extends java.lang.Object
    Examples for under filesystem common operations. The class should contain all the Alluxio ufs semantics.
    • 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 path
        topLevelTestDirectory - the top level test directory
        ufs - the under filesystem
        configuration - the instance configuration
    • Method Detail

      • createAtomicTest

        public void createAtomicTest()
                              throws java.io.IOException
        Test for creating file atomic.
        Throws:
        java.io.IOException
      • createEmptyTest

        public void createEmptyTest()
                             throws java.io.IOException
        Test for creating empty file.
        Throws:
        java.io.IOException
      • createNoParentTest

        public void createNoParentTest()
                                throws java.io.IOException
        Test for creating file without parent.
        Throws:
        java.io.IOException
      • createParentTest

        public void createParentTest()
                              throws java.io.IOException
        Test for creating file with parent.
        Throws:
        java.io.IOException
      • createOpenTest

        public void createOpenTest()
                            throws java.io.IOException
        Test for creating and opening file.
        Throws:
        java.io.IOException
      • createOpenEmptyTest

        public void createOpenEmptyTest()
                                 throws java.io.IOException
        Test for creating and opening empty file.
        Throws:
        java.io.IOException
      • createOpenAtPositionTest

        public void createOpenAtPositionTest()
                                      throws java.io.IOException
        Test for creating file and opening at position.
        Throws:
        java.io.IOException
      • createOpenLargeTest

        public void createOpenLargeTest()
                                 throws java.io.IOException
        Test for creating and opening large file.
        Throws:
        java.io.IOException
      • createOpenExistingLargeFileTest

        public void createOpenExistingLargeFileTest()
                                             throws java.io.IOException
        Test for creating and open existing large file.
        Throws:
        java.io.IOException
      • createOpenSkip

        public void createOpenSkip()
                            throws java.io.IOException
        Test for create file, open and seek.
        Throws:
        java.io.IOException
      • deleteFileTest

        public void deleteFileTest()
                            throws java.io.IOException
        Test for deleting file.
        Throws:
        java.io.IOException
      • deleteDirTest

        public void deleteDirTest()
                           throws java.io.IOException
        Test for deleting directory.
        Throws:
        java.io.IOException
      • deleteLargeDirectoryTest

        public void deleteLargeDirectoryTest()
                                      throws java.lang.Exception
        Test for deleting large directory.
        Throws:
        java.lang.Exception
      • createDeleteFileConjuctionTest

        public void createDeleteFileConjuctionTest()
                                            throws java.io.IOException
        Test for creating and deleting file conjunction.
        Throws:
        java.io.IOException
      • createThenDeleteExistingDirectoryTest

        public void createThenDeleteExistingDirectoryTest()
                                                   throws java.io.IOException
        Test for creating and deleting existing directory.
        Throws:
        java.io.IOException
      • existsTest

        public void existsTest()
                        throws java.io.IOException
        Test for checking file existence.
        Throws:
        java.io.IOException
      • getDirectoryStatusTest

        public void getDirectoryStatusTest()
                                    throws java.io.IOException
        Test for getting directory status.
        Throws:
        java.io.IOException
      • createThenGetExistingDirectoryStatusTest

        public void createThenGetExistingDirectoryStatusTest()
                                                      throws java.io.IOException
        Test for getting existing directory status.
        Throws:
        java.io.IOException
      • getFileSizeTest

        public void getFileSizeTest()
                             throws java.io.IOException
        Test for getting file size.
        Throws:
        java.io.IOException
      • createThenGetExistingFileStatusTest

        public void createThenGetExistingFileStatusTest()
                                                 throws java.io.IOException
        Test for getting existing file status.
        Throws:
        java.io.IOException
      • getFileStatusTest

        public void getFileStatusTest()
                               throws java.io.IOException
        Test for getting file status.
        Throws:
        java.io.IOException
      • createThenGetExistingStatusTest

        public void createThenGetExistingStatusTest()
                                             throws java.io.IOException
        Test for getting existing status.
        Throws:
        java.io.IOException
      • getModTimeTest

        public void getModTimeTest()
                            throws java.io.IOException
        Test for getting modification time.
        Throws:
        java.io.IOException
      • getNonExistingDirectoryStatusTest

        public void getNonExistingDirectoryStatusTest()
                                               throws java.io.IOException
        Test for getting status of non-existent directory.
        Throws:
        java.io.IOException
      • getNonExistingFileStatusTest

        public void getNonExistingFileStatusTest()
                                          throws java.io.IOException
        Test for getting status of non-existent file.
        Throws:
        java.io.IOException
      • getNonExistingPathStatusTest

        public void getNonExistingPathStatusTest()
                                          throws java.io.IOException
        Test for getting status of non-existent path.
        Throws:
        java.io.IOException
      • isFileTest

        public void isFileTest()
                        throws java.io.IOException
        Test for checking file is actual file.
        Throws:
        java.io.IOException
      • listStatusRootTest

        public void listStatusRootTest()
                                throws java.io.IOException
        Test for listing status of the root directory of the UFS.
        Throws:
        java.io.IOException
      • listStatusTest

        public void listStatusTest()
                            throws java.io.IOException
        Test for listing status.
        Throws:
        java.io.IOException
      • listStatusEmptyTest

        public void listStatusEmptyTest()
                                 throws java.io.IOException
        Test for listing empty directory.
        Throws:
        java.io.IOException
      • listStatusFileTest

        public void listStatusFileTest()
                                throws java.io.IOException
        Test for listing status on file.
        Throws:
        java.io.IOException
      • listLargeDirectoryTest

        public void listLargeDirectoryTest()
                                    throws java.lang.Exception
        Test for listing large directory.
        Throws:
        java.lang.Exception
      • listStatusRecursiveTest

        public void listStatusRecursiveTest()
                                     throws java.io.IOException
        Test for listing status recursively.
        Throws:
        java.io.IOException
      • mkdirsTest

        public void mkdirsTest()
                        throws java.io.IOException
        Test for creating directory.
        Throws:
        java.io.IOException
      • objectCommonPrefixesIsDirectoryTest

        public void objectCommonPrefixesIsDirectoryTest()
                                                 throws java.io.IOException
        Test for checking directory in object storage.
        Throws:
        java.io.IOException
      • objectCommonPrefixesListStatusNonRecursiveTest

        public void objectCommonPrefixesListStatusNonRecursiveTest()
                                                            throws java.io.IOException
        Test for listing status non recursively in object storage.
        Throws:
        java.io.IOException
      • objectCommonPrefixesListStatusRecursiveTest

        public void objectCommonPrefixesListStatusRecursiveTest()
                                                         throws java.io.IOException
        Test for listing status recursively in object storage.
        Throws:
        java.io.IOException
      • objectNestedDirsListStatusRecursiveTest

        public void objectNestedDirsListStatusRecursiveTest()
                                                     throws java.io.IOException
        Test for listing status recursively in nested directory in object storage.
        Throws:
        java.io.IOException
      • renameFileTest

        public void renameFileTest()
                            throws java.io.IOException
        Test for renaming file.
        Throws:
        java.io.IOException
      • renameRenamableFileTest

        public void renameRenamableFileTest()
                                     throws java.io.IOException
        Test for renaming renamable file.
        Throws:
        java.io.IOException
      • renameDirectoryTest

        public void renameDirectoryTest()
                                 throws java.io.IOException
        Test for renaming directory.
        Throws:
        java.io.IOException
      • renameDirectoryDeepTest

        public void renameDirectoryDeepTest()
                                     throws java.io.IOException
        Test for renaming deep directory.
        Throws:
        java.io.IOException
      • renameRenamableDirectoryTest

        public void renameRenamableDirectoryTest()
                                          throws java.io.IOException
        Test for renaming renamable directory.
        Throws:
        java.io.IOException
      • renameLargeDirectoryTest

        public void renameLargeDirectoryTest()
                                      throws java.lang.Exception
        Test for renaming large directory.
        Throws:
        java.lang.Exception