java.lang.Object
org.yamcs.yarch.rocksdb.RdbConfig
reads the rdbConfig from the yamcs.yaml and provides RocksDB Options when creating and opening databases
singleton
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.rocksdb.ColumnFamilyOptionsdefault column family options if no table specific config has been configured.org.rocksdb.DBOptionsdefault db options if no table specific config has been configured.org.rocksdb.Optionsdefault options if no table specific config has been configured.static RdbConfiggetTablespaceConfig(String tablespaceName)
-
Field Details
-
KEY_RDB_CONFIG
- See Also:
-
KEY_TABLESPACE_CONFIG
- See Also:
-
KEY_OPTIONS
- See Also:
-
KEY_TABLESPACE_NAME_PATTERN
- See Also:
-
KEY_TF_CONFIG
- See Also:
-
DEFAULT_MAX_OPEN_FILES
public static final int DEFAULT_MAX_OPEN_FILES- See Also:
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance
-
getDefaultColumnFamilyOptions
public org.rocksdb.ColumnFamilyOptions getDefaultColumnFamilyOptions()default column family options if no table specific config has been configured.- Returns:
- default column family options
-
getDefaultOptions
public org.rocksdb.Options getDefaultOptions()default options if no table specific config has been configured.- Returns:
- default options
-
getDefaultDBOptions
public org.rocksdb.DBOptions getDefaultDBOptions()default db options if no table specific config has been configured. no specific option set- Returns:
- default options
-
getTablespaceConfig
- Parameters:
tablespaceName-- Returns:
- the first table config that matches the tablespace name or null if no config matches
-