Class RocksDBBlobStoreConfigurer
java.lang.Object
com.gigaspaces.blobstore.rocksdb.config.RocksDBBlobStoreConfigurer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()voiddestroy()closes the handler instancelonglonggetPaths()booleanbooleanisFsync()setBlockSizeKB(long blockSizeKB) setCacheSizeMB(long cacheSizeMB) setCentralStorage(boolean centralStorage) setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions) setDBOptions(XAPDBOptions dbOptions) setFsync(boolean fsync) setMainPath(String mainPath) setMappingDir(String mappingDir) setOffHeapCacheMemoryThreshold(String offHeapCacheMemoryThreshold) setPersistent(Boolean persistent)
-
Constructor Details
-
RocksDBBlobStoreConfigurer
public RocksDBBlobStoreConfigurer()
-
-
Method Details
-
getPaths
-
setPaths
-
getDbOptions
-
setDBOptions
- Parameters:
dbOptions- - RocksDB db options.
-
getDataColumnFamilyOptions
-
setDataColumnFamilyOptions
public RocksDBBlobStoreConfigurer setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions) - Parameters:
columnFamilyOptions- - RocksDB column family options.
-
getMappingDir
-
setMappingDir
- 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
- 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
- Parameters:
fsync- - If false each write is transfer from operating system memory to the underlying persistent storage asynchronously.
-
isPersistent
-
setPersistent
-
getCacheSizeMB
public long getCacheSizeMB() -
setCacheSizeMB
-
getBlockSizeKB
public long getBlockSizeKB() -
setBlockSizeKB
-
getOffHeapCacheMemoryThreshold
-
setOffHeapCacheMemoryThreshold
public RocksDBBlobStoreConfigurer setOffHeapCacheMemoryThreshold(String offHeapCacheMemoryThreshold) -
getMainPath
-
setMainPath
-
create
- Returns:
- a RocksDBBlobStoreHandler instance
-
storageHandler
- Returns:
- a handler instance
- See Also:
-
destroy
public void destroy()closes the handler instance
-