Class RocksDBBlobStoreConfigurer

java.lang.Object
com.gigaspaces.blobstore.rocksdb.config.RocksDBBlobStoreConfigurer

public class RocksDBBlobStoreConfigurer extends Object
A simple configurer helper to create RocksDBBlobStoreHandler instances.

An example of using it:

 RocksDBBlobStoreConfigurer configurer = new RocksDBBlobStoreConfigurer();
 configurer.setPaths("[/mnt/rocksdb]");
 configurer.setMappingDir("/mnt/mapping");

 RocksDBBlobStoreHandler rocksDBBlobStoreHandler = configurer.create();
 
Since:
11.0.0
Author:
Kobi
  • Constructor Details

    • RocksDBBlobStoreConfigurer

      public RocksDBBlobStoreConfigurer()
  • Method Details

    • getPaths

      public String getPaths()
    • setPaths

      public RocksDBBlobStoreConfigurer setPaths(String paths)
    • getDbOptions

      public XAPDBOptions getDbOptions()
    • setDBOptions

      public RocksDBBlobStoreConfigurer setDBOptions(XAPDBOptions dbOptions)
      Parameters:
      dbOptions - - RocksDB db options.
    • getDataColumnFamilyOptions

      public XAPColumnFamilyOptions getDataColumnFamilyOptions()
    • setDataColumnFamilyOptions

      public RocksDBBlobStoreConfigurer setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions)
      Parameters:
      columnFamilyOptions - - RocksDB column family options.
    • getMappingDir

      public String getMappingDir()
    • setMappingDir

      public RocksDBBlobStoreConfigurer setMappingDir(String mappingDir)
      Parameters:
      mappingDir - - Point to a directory in a file system. This directory contains file which contains a mapping between space name and a RocksDB location.
    • isCentralStorage

      public boolean isCentralStorage()
    • setCentralStorage

      public RocksDBBlobStoreConfigurer setCentralStorage(boolean centralStorage)
      Parameters:
      centralStorage - - Enable in case you have a centralized storage. in this case each space is connected to a predefined RocksDB mounted location.
    • isFsync

      public boolean isFsync()
    • setFsync

      public RocksDBBlobStoreConfigurer setFsync(boolean fsync)
      Parameters:
      fsync - - If false each write is transfer from operating system memory to the underlying persistent storage asynchronously.
    • isPersistent

      public Boolean isPersistent()
    • setPersistent

      public RocksDBBlobStoreConfigurer setPersistent(Boolean persistent)
    • getCacheSizeMB

      public long getCacheSizeMB()
    • setCacheSizeMB

      public RocksDBBlobStoreConfigurer setCacheSizeMB(long cacheSizeMB)
    • getBlockSizeKB

      public long getBlockSizeKB()
    • setBlockSizeKB

      public RocksDBBlobStoreConfigurer setBlockSizeKB(long blockSizeKB)
    • getOffHeapCacheMemoryThreshold

      public String getOffHeapCacheMemoryThreshold()
    • setOffHeapCacheMemoryThreshold

      public RocksDBBlobStoreConfigurer setOffHeapCacheMemoryThreshold(String offHeapCacheMemoryThreshold)
    • getMainPath

      public String getMainPath()
    • setMainPath

      public RocksDBBlobStoreConfigurer setMainPath(String mainPath)
    • create

      public RocksDBBlobStoreHandler create()
      Returns:
      a RocksDBBlobStoreHandler instance
    • storageHandler

      public RocksDBBlobStoreHandler storageHandler()
      Returns:
      a handler instance
      See Also:
    • destroy

      public void destroy()
      closes the handler instance