Class RocksDBConfig
- java.lang.Object
-
- io.streamthoughts.azkarra.api.config.RocksDBConfig
-
public class RocksDBConfig extends Object
Configuration class for setting internal RocksDB options.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROCKS_DB_LOG_DIR_CONFIG
static String
ROCKS_DB_LOG_LEVEL_CONFIG
static String
ROCKS_DB_LOG_MAX_FILE_SIZE_CONFIG
static String
ROCKS_DB_MAX_WRITE_BUFFER_NUMBER_CONFIG
static String
ROCKS_DB_STATS_DUMP_PERIOD_SEC_CONFIG
static String
ROCKS_DB_STATS_ENABLE_CONFIG
static String
ROCKS_DB_WRITE_BUFFER_SIZE_CONFIG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Conf
conf()
String
toString()
RocksDBConfig
withBufferSize(int writeBufferSize)
RocksDBConfig
withLogDir(String logDir)
RocksDBConfig
withLogLevel(String level)
RocksDBConfig
withLogMaxFileSize(int logMaxFileSize)
RocksDBConfig
withMaxWriteBufferNumber(int maxWriteBufferNumber)
static RocksDBConfig
withStatsDisable()
RocksDBConfig
withStatsDumpPeriod(Duration duration)
static RocksDBConfig
withStatsEnable()
-
-
-
Field Detail
-
ROCKS_DB_MAX_WRITE_BUFFER_NUMBER_CONFIG
public static String ROCKS_DB_MAX_WRITE_BUFFER_NUMBER_CONFIG
-
ROCKS_DB_WRITE_BUFFER_SIZE_CONFIG
public static String ROCKS_DB_WRITE_BUFFER_SIZE_CONFIG
-
ROCKS_DB_STATS_ENABLE_CONFIG
public static String ROCKS_DB_STATS_ENABLE_CONFIG
-
ROCKS_DB_STATS_DUMP_PERIOD_SEC_CONFIG
public static String ROCKS_DB_STATS_DUMP_PERIOD_SEC_CONFIG
-
ROCKS_DB_LOG_DIR_CONFIG
public static String ROCKS_DB_LOG_DIR_CONFIG
-
ROCKS_DB_LOG_LEVEL_CONFIG
public static String ROCKS_DB_LOG_LEVEL_CONFIG
-
ROCKS_DB_LOG_MAX_FILE_SIZE_CONFIG
public static String ROCKS_DB_LOG_MAX_FILE_SIZE_CONFIG
-
-
Method Detail
-
withStatsEnable
public static RocksDBConfig withStatsEnable()
-
withStatsDisable
public static RocksDBConfig withStatsDisable()
-
withBufferSize
public RocksDBConfig withBufferSize(int writeBufferSize)
-
withMaxWriteBufferNumber
public RocksDBConfig withMaxWriteBufferNumber(int maxWriteBufferNumber)
-
withStatsDumpPeriod
public RocksDBConfig withStatsDumpPeriod(Duration duration)
-
withLogDir
public RocksDBConfig withLogDir(String logDir)
-
withLogLevel
public RocksDBConfig withLogLevel(String level)
-
withLogMaxFileSize
public RocksDBConfig withLogMaxFileSize(int logMaxFileSize)
-
conf
public Conf conf()
-
-