Class BlobStoreFixture

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public abstract class BlobStoreFixture
    extends java.lang.Object
    implements java.io.Closeable
    • Field Detail

      • unique

        protected final java.lang.String unique
    • Constructor Detail

      • BlobStoreFixture

        public BlobStoreFixture​(java.lang.String name)
    • Method Detail

      • tearDown

        public abstract void tearDown()
      • size

        public abstract long size()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • create

        @Nullable
        public static @Nullable BlobStoreFixture create​(java.io.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
      • getFileBlobStore

        public static BlobStoreFixture getFileBlobStore​(java.io.File basedir)
      • loadAndTransformProps

        public static java.util.Map<java.lang.String,​java.lang.Object> loadAndTransformProps​(java.lang.String cfgPath)
                                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getConfig

        public static java.util.Map<java.lang.String,​?> getConfig()