public class RocksDBStateBackendFactory extends Object implements StateBackendFactory<RocksDBStateBackend>
RocksDBStateBackend
from a configuration.Modifier and Type | Field and Description |
---|---|
static String |
CHECKPOINT_DIRECTORY_URI_CONF_KEY
The key under which the config stores the directory where checkpoints should be stored
|
protected static org.slf4j.Logger |
LOG |
static String |
ROCKSDB_CHECKPOINT_DIRECTORY_URI_CONF_KEY
The key under which the config stores the directory where RocksDB should be stored
|
Constructor and Description |
---|
RocksDBStateBackendFactory() |
Modifier and Type | Method and Description |
---|---|
RocksDBStateBackend |
createFromConfig(Configuration config)
Creates the state backend, optionally using the given configuration.
|
protected static final org.slf4j.Logger LOG
public static final String CHECKPOINT_DIRECTORY_URI_CONF_KEY
public static final String ROCKSDB_CHECKPOINT_DIRECTORY_URI_CONF_KEY
public RocksDBStateBackend createFromConfig(Configuration config) throws IllegalConfigurationException, IOException
StateBackendFactory
createFromConfig
in interface StateBackendFactory<RocksDBStateBackend>
config
- The Flink configuration (loaded by the TaskManager).IllegalConfigurationException
- If the configuration misses critical values, or specifies invalid valuesIOException
- If the state backend initialization failed due to an I/O exceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.