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() |
Modifier and Type | Method and Description |
---|---|
RocksDBBlobStoreHandler |
create() |
void |
destroy()
closes the handler instance
|
RocksDBBlobStoreConfigurer |
setBlockSizeKB(long blockSizeKB) |
RocksDBBlobStoreConfigurer |
setCacheSizeMB(long setCacheSizeMB) |
RocksDBBlobStoreConfigurer |
setCentralStorage(boolean centralStorage) |
RocksDBBlobStoreConfigurer |
setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions) |
RocksDBBlobStoreConfigurer |
setDBOptions(XAPDBOptions dbOptions) |
RocksDBBlobStoreConfigurer |
setFsync(boolean fsync) |
RocksDBBlobStoreConfigurer |
setMappingDir(String mappingDir) |
RocksDBBlobStoreConfigurer |
setPaths(String paths) |
RocksDBBlobStoreHandler |
storageHandler() |
public RocksDBBlobStoreConfigurer setPaths(String paths)
public RocksDBBlobStoreConfigurer setDBOptions(XAPDBOptions dbOptions)
dbOptions
- - RocksDB db options.public RocksDBBlobStoreConfigurer setDataColumnFamilyOptions(XAPColumnFamilyOptions columnFamilyOptions)
columnFamilyOptions
- - RocksDB column family options.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 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 RocksDBBlobStoreConfigurer setFsync(boolean fsync)
fsync
- - If false each write is transfer from operating system memory to the underlying
persistent storage asynchronously.public RocksDBBlobStoreConfigurer setCacheSizeMB(long setCacheSizeMB)
public RocksDBBlobStoreConfigurer setBlockSizeKB(long blockSizeKB)
public RocksDBBlobStoreHandler create()
public RocksDBBlobStoreHandler storageHandler()
create()
public void destroy()
Copyright © GigaSpaces.