Class RocksDBThrottler
- java.lang.Object
-
- com.linkedin.davinci.store.rocksdb.RocksDBThrottler
-
public class RocksDBThrottler extends java.lang.Object
This class is used to throttle RocksDB operations. So far, it only supports throttling open operations. checkRocksDBServerConfig.ROCKSDB_DB_OPEN_OPERATION_THROTTLE
to find more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
RocksDBThrottler.RocksDBSupplier
-
Constructor Summary
Constructors Constructor Description RocksDBThrottler(int allowedMaxOpenOperationsInParallel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.rocksdb.RocksDB
open(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
Open RocksDB in read-write mode with provided column family descriptors and handlers.org.rocksdb.RocksDB
openReadOnly(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
Open RocksDB in read-only mode with provided column family descriptors and handlers.protected org.rocksdb.RocksDB
throttledOpen(java.lang.String dbPath, RocksDBThrottler.RocksDBSupplier rocksDBSupplier)
-
-
-
Method Detail
-
throttledOpen
protected org.rocksdb.RocksDB throttledOpen(java.lang.String dbPath, RocksDBThrottler.RocksDBSupplier rocksDBSupplier) throws java.lang.InterruptedException, org.rocksdb.RocksDBException
- Throws:
java.lang.InterruptedException
org.rocksdb.RocksDBException
-
openReadOnly
public org.rocksdb.RocksDB openReadOnly(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles) throws org.rocksdb.RocksDBException, java.lang.InterruptedException
Open RocksDB in read-only mode with provided column family descriptors and handlers.- Throws:
org.rocksdb.RocksDBException
java.lang.InterruptedException
-
open
public org.rocksdb.RocksDB open(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles) throws org.rocksdb.RocksDBException, java.lang.InterruptedException
Open RocksDB in read-write mode with provided column family descriptors and handlers.- Throws:
org.rocksdb.RocksDBException
java.lang.InterruptedException
-
-