Class LocalFilesystemTestUtils


  • public class LocalFilesystemTestUtils
    extends java.lang.Object
    • Method Detail

      • createMangledFilesystem

        public static MangledLocalFileSystem createMangledFilesystem​(java.lang.String rootPath,
                                                                     boolean isVersioned,
                                                                     boolean readOnly,
                                                                     boolean enableAsyncronousDispatching)
                                                              throws java.io.IOException
        Create empty mangled filesystem
        Parameters:
        rootPath - path for root directory (must already exist).
        isVersioned - if true item versioning will be enabled.
        readOnly - if true modifications within this file-system will not be allowed and result in an ReadOnlyException
        enableAsyncronousDispatching - if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.
        Throws:
        java.io.IOException
      • createOriginalIndexedFilesystem

        public static IndexedLocalFileSystem createOriginalIndexedFilesystem​(java.lang.String rootPath,
                                                                             boolean isVersioned,
                                                                             boolean readOnly,
                                                                             boolean enableAsyncronousDispatching)
                                                                      throws java.io.IOException
        Create empty original Indexed filesystem. The original index file lacked any version indicator but will be treated as a version 0 index.
        Parameters:
        rootPath - path for root directory (must already exist).
        isVersioned - if true item versioning will be enabled.
        readOnly - if true modifications within this file-system will not be allowed and result in an ReadOnlyException
        enableAsyncronousDispatching - if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.
        Throws:
        java.io.IOException
      • createIndexedV0Filesystem

        public static IndexedLocalFileSystem createIndexedV0Filesystem​(java.lang.String rootPath,
                                                                       boolean isVersioned,
                                                                       boolean readOnly,
                                                                       boolean enableAsyncronousDispatching)
                                                                throws java.io.IOException
        Create empty V0 Indexed filesystem. This is an original Indexed filesystem with the addition of a version 0 indicator within the index file.
        Parameters:
        rootPath - path for root directory (must already exist).
        isVersioned - if true item versioning will be enabled.
        readOnly - if true modifications within this file-system will not be allowed and result in an ReadOnlyException
        enableAsyncronousDispatching - if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.
        Throws:
        java.io.IOException
      • createIndexedV1Filesystem

        public static IndexedV1LocalFileSystem createIndexedV1Filesystem​(java.lang.String rootPath,
                                                                         boolean isVersioned,
                                                                         boolean readOnly,
                                                                         boolean enableAsyncronousDispatching)
                                                                  throws java.io.IOException
        Create empty mangled filesystem
        Parameters:
        rootPath - path for root directory (must already exist).
        isVersioned - if true item versioning will be enabled.
        readOnly - if true modifications within this file-system will not be allowed and result in an ReadOnlyException
        enableAsyncronousDispatching - if true a separate dispatch thread will be used to notify listeners. If false, blocking notification will be performed.
        Throws:
        java.io.IOException