public class RocksDBBlobStoreConfigurer extends Object
RocksDBBlobStoreHandler
instances.
An example of using it:
RocksDBBlobStoreConfigurer configurer = new RocksDBBlobStoreConfigurer(); configurer.setPaths("[/mnt/rocksdb]"); configurer.setMappingDir("/mnt/mapping"); RocksDBBlobStoreHandler rocksDBBlobStoreHandler = configurer.create();
Constructor and Description |
---|
RocksDBBlobStoreConfigurer() |
public String getPaths()
public RocksDBBlobStoreConfigurer setPaths(String paths)
public XAPDBOptions getDbOptions()
public RocksDBBlobStoreConfigurer setDBOptions(XAPDBOptions dbOptions)
dbOptions
- - RocksDB db options.public XAPColumnFamilyOptions getDataColumnFamilyOptions()
public RocksDBBlobStoreConfigurer setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions)
columnFamilyOptions
- - RocksDB column family options.public String getMappingDir()
public RocksDBBlobStoreConfigurer setMappingDir(String mappingDir)
mappingDir
- - Point to a directory in a file system. This directory contains file which
contains a mapping between space name and a RocksDB location.public boolean isCentralStorage()
public RocksDBBlobStoreConfigurer setCentralStorage(boolean centralStorage)
centralStorage
- - Enable in case you have a centralized storage. in this case each
space is connected to a predefined RocksDB mounted location.public boolean isFsync()
public RocksDBBlobStoreConfigurer setFsync(boolean fsync)
fsync
- - If false each write is transfer from operating system memory to the underlying
persistent storage asynchronously.public Boolean isPersistent()
public RocksDBBlobStoreConfigurer setPersistent(Boolean persistent)
public long getCacheSizeMB()
public RocksDBBlobStoreConfigurer setCacheSizeMB(long cacheSizeMB)
public long getBlockSizeKB()
public RocksDBBlobStoreConfigurer setBlockSizeKB(long blockSizeKB)
public String getOffHeapCacheMemoryThreshold()
public RocksDBBlobStoreConfigurer setOffHeapCacheMemoryThreshold(String offHeapCacheMemoryThreshold)
public String getMainPath()
public RocksDBBlobStoreConfigurer setMainPath(String mainPath)
public RocksDBBlobStoreHandler create()
public RocksDBBlobStoreHandler storageHandler()
create()
public void destroy()
Copyright © GigaSpaces.