Class OakFixture

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OakFixture​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static OakFixture getCompositeMemoryStore​(java.lang.String name)  
      static OakFixture getCompositeMongoStore​(java.lang.String name, java.lang.String uri, long cacheSize, boolean dropDBAfterTest, boolean throttlingEnabled)  
      static OakFixture getCompositeStore​(java.lang.String name, java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)  
      static OakFixture getMemory​(long cacheSize)  
      static OakFixture getMemory​(java.lang.String name, long cacheSize)  
      static OakFixture getMemoryNS​(long cacheSize)  
      static OakFixture getMongo​(java.lang.String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)  
      static OakFixture getMongo​(java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)  
      static OakFixture getMongo​(java.lang.String name, java.lang.String uri, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, java.io.File base, int dsCacheInMB, boolean throttlingEnabled)  
      static OakFixture getMongo​(java.lang.String name, java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize, boolean useFileDataStore, java.io.File base, int fdsCacheInMB, boolean throttlingEnabled)  
      static OakFixture getMongoNS​(java.lang.String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)  
      static OakFixture getMongoNS​(java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)  
      abstract Oak getOak​(int clusterId)  
      static OakFixture getRDB​(java.lang.String name, java.lang.String jdbcuri, java.lang.String jdbcuser, java.lang.String jdbcpasswd, java.lang.String tablePrefix, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, java.io.File base, int dsCacheInMB, int vgcMaxAge)  
      static OakFixture getRDB​(java.lang.String name, java.lang.String jdbcuri, java.lang.String jdbcuser, java.lang.String jdbcpasswd, java.lang.String tablePrefix, boolean dropDBAfterTest, long cacheSize, int vgcMaxAge)  
      static OakFixture getSegmentTar​(java.lang.String name, java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, boolean withColdStandby, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)  
      static OakFixture getSegmentTarWithAwsSegmentStore​(java.io.File base, java.lang.String awsBucketName, java.lang.String awsRootPath, java.lang.String awsJournalTableName, java.lang.String awsLockTableName, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)  
      static OakFixture getSegmentTarWithAzureSegmentStore​(java.io.File base, java.lang.String azureConnectionString, java.lang.String azureContainerName, java.lang.String azureRootPath, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)  
      static OakFixture getSegmentTarWithColdStandby​(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)  
      static OakFixture getSegmentTarWithDataStore​(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, int dsCacheInMB)  
      static java.lang.String getUniqueDatabaseName​(java.lang.String name)  
      static OakFixture getVanillaSegmentTar​(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)  
      static OakFixture getVanillaSegmentTar​(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)  
      abstract Oak[] setUpCluster​(int n, StatisticsProvider statsProvider)  
      abstract void tearDownCluster()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OakFixture

        protected OakFixture​(java.lang.String name)
    • Method Detail

      • getUniqueDatabaseName

        public static java.lang.String getUniqueDatabaseName​(java.lang.String name)
      • getOak

        public abstract Oak getOak​(int clusterId)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setUpCluster

        public abstract Oak[] setUpCluster​(int n,
                                           StatisticsProvider statsProvider)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tearDownCluster

        public abstract void tearDownCluster()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getMemory

        public static OakFixture getMemory​(long cacheSize)
      • getMemoryNS

        public static OakFixture getMemoryNS​(long cacheSize)
      • getMemory

        public static OakFixture getMemory​(java.lang.String name,
                                           long cacheSize)
      • getMongo

        public static OakFixture getMongo​(java.lang.String uri,
                                          boolean dropDBAfterTest,
                                          long cacheSize,
                                          boolean throttlingEnabled)
      • getMongo

        public static OakFixture getMongo​(java.lang.String host,
                                          int port,
                                          java.lang.String database,
                                          boolean dropDBAfterTest,
                                          long cacheSize,
                                          boolean throttlingEnabled)
      • getMongoNS

        public static OakFixture getMongoNS​(java.lang.String uri,
                                            boolean dropDBAfterTest,
                                            long cacheSize,
                                            boolean throttlingEnabled)
      • getMongoNS

        public static OakFixture getMongoNS​(java.lang.String host,
                                            int port,
                                            java.lang.String database,
                                            boolean dropDBAfterTest,
                                            long cacheSize,
                                            boolean throttlingEnabled)
      • getMongo

        public static OakFixture getMongo​(java.lang.String name,
                                          java.lang.String host,
                                          int port,
                                          java.lang.String database,
                                          boolean dropDBAfterTest,
                                          long cacheSize,
                                          boolean useFileDataStore,
                                          java.io.File base,
                                          int fdsCacheInMB,
                                          boolean throttlingEnabled)
      • getMongo

        public static OakFixture getMongo​(java.lang.String name,
                                          java.lang.String uri,
                                          boolean dropDBAfterTest,
                                          long cacheSize,
                                          boolean useDataStore,
                                          java.io.File base,
                                          int dsCacheInMB,
                                          boolean throttlingEnabled)
      • getRDB

        public static OakFixture getRDB​(java.lang.String name,
                                        java.lang.String jdbcuri,
                                        java.lang.String jdbcuser,
                                        java.lang.String jdbcpasswd,
                                        java.lang.String tablePrefix,
                                        boolean dropDBAfterTest,
                                        long cacheSize,
                                        int vgcMaxAge)
      • getRDB

        public static OakFixture getRDB​(java.lang.String name,
                                        java.lang.String jdbcuri,
                                        java.lang.String jdbcuser,
                                        java.lang.String jdbcpasswd,
                                        java.lang.String tablePrefix,
                                        boolean dropDBAfterTest,
                                        long cacheSize,
                                        boolean useDataStore,
                                        java.io.File base,
                                        int dsCacheInMB,
                                        int vgcMaxAge)
      • getSegmentTar

        public static OakFixture getSegmentTar​(java.lang.String name,
                                               java.io.File base,
                                               int maxFileSizeMB,
                                               int cacheSizeMB,
                                               boolean memoryMapping,
                                               int binariesInlineThreshold,
                                               boolean useBlobStore,
                                               int dsCacheInMB,
                                               boolean withColdStandby,
                                               int syncInterval,
                                               boolean shareBlobStore,
                                               boolean secure,
                                               boolean oneShotRun)
      • getVanillaSegmentTar

        public static OakFixture getVanillaSegmentTar​(java.io.File base,
                                                      int maxFileSizeMB,
                                                      int cacheSizeMB,
                                                      boolean memoryMapping,
                                                      int binariesInlineThreshold)
      • getVanillaSegmentTar

        public static OakFixture getVanillaSegmentTar​(java.io.File base,
                                                      int maxFileSizeMB,
                                                      int cacheSizeMB,
                                                      boolean memoryMapping)
      • getSegmentTarWithDataStore

        public static OakFixture getSegmentTarWithDataStore​(java.io.File base,
                                                            int maxFileSizeMB,
                                                            int cacheSizeMB,
                                                            boolean memoryMapping,
                                                            int binariesInlineThreshold,
                                                            int dsCacheInMB)
      • getSegmentTarWithColdStandby

        public static OakFixture getSegmentTarWithColdStandby​(java.io.File base,
                                                              int maxFileSizeMB,
                                                              int cacheSizeMB,
                                                              boolean memoryMapping,
                                                              int binariesInlineThreshold,
                                                              boolean useBlobStore,
                                                              int dsCacheInMB,
                                                              int syncInterval,
                                                              boolean shareBlobStore,
                                                              boolean secure,
                                                              boolean oneShotRun)
      • getSegmentTarWithAwsSegmentStore

        public static OakFixture getSegmentTarWithAwsSegmentStore​(java.io.File base,
                                                                  java.lang.String awsBucketName,
                                                                  java.lang.String awsRootPath,
                                                                  java.lang.String awsJournalTableName,
                                                                  java.lang.String awsLockTableName,
                                                                  int maxFileSizeMB,
                                                                  int cacheSizeMB,
                                                                  int binariesInlineThreshold,
                                                                  boolean useBlobStore,
                                                                  int dsCacheInMB)
      • getSegmentTarWithAzureSegmentStore

        public static OakFixture getSegmentTarWithAzureSegmentStore​(java.io.File base,
                                                                    java.lang.String azureConnectionString,
                                                                    java.lang.String azureContainerName,
                                                                    java.lang.String azureRootPath,
                                                                    int maxFileSizeMB,
                                                                    int cacheSizeMB,
                                                                    int binariesInlineThreshold,
                                                                    boolean useBlobStore,
                                                                    int dsCacheInMB)
      • getCompositeStore

        public static OakFixture getCompositeStore​(java.lang.String name,
                                                   java.io.File base,
                                                   int maxFileSizeMB,
                                                   int cacheSizeMB,
                                                   boolean memoryMapping,
                                                   int binariesInlineThreshold)
      • getCompositeMemoryStore

        public static OakFixture getCompositeMemoryStore​(java.lang.String name)
      • getCompositeMongoStore

        public static OakFixture getCompositeMongoStore​(java.lang.String name,
                                                        java.lang.String uri,
                                                        long cacheSize,
                                                        boolean dropDBAfterTest,
                                                        boolean throttlingEnabled)