Class BlobStoreFixture

java.lang.Object
org.apache.jackrabbit.oak.fixture.BlobStoreFixture
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class BlobStoreFixture extends Object implements Closeable
  • Field Details

    • unique

      protected final String unique
  • Constructor Details

    • BlobStoreFixture

      public BlobStoreFixture(String name)
  • Method Details

    • setUp

      public abstract BlobStore setUp()
    • tearDown

      public abstract void tearDown()
    • size

      public abstract long size()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • create

      @Nullable public static @Nullable BlobStoreFixture create(File basedir, boolean fallbackToFDS, int fdsCacheInMB, StatisticsProvider statisticsProvider)
      Creates an instance of the BlobStoreFixture based on configuration determined from system properties
      Parameters:
      basedir - directory to be used in case of file based BlobStore
      fallbackToFDS - if true then FileDataStore would be used in absence of any explicitly defined BlobStore
    • getFileDataStore

      public static BlobStoreFixture getFileDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
    • getFileBlobStore

      public static BlobStoreFixture getFileBlobStore(File basedir)
    • getMemoryBlobStore

      public static BlobStoreFixture getMemoryBlobStore()
    • getDataStore

      public static BlobStoreFixture getDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
    • loadAndTransformProps

      public static Map<String,Object> loadAndTransformProps(String cfgPath) throws IOException
      Throws:
      IOException
    • getConfig

      public static Map<String,?> getConfig()