public class KCVSLogManager extends Object implements LogManager
LogManager against an arbitrary KeyColumnValueStoreManager. Issues Log instances
which wrap around a KeyColumnValueStore.| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_SIZE_DIVIDER
If
LOG_MAX_PARTITIONS isn't set explicitly, the number of partitions is derived by taking the configured
GraphDatabaseConfiguration.CLUSTER_MAX_PARTITIONS and dividing
the number by this constant. |
static ConfigOption<Boolean> |
LOG_FIXED_PARTITION |
static ConfigOption<Integer> |
LOG_MAX_PARTITIONS |
| Constructor and Description |
|---|
KCVSLogManager(KeyColumnValueStoreManager storeManager,
Configuration config)
Opens a log manager against the provided KCVS store with the given configuration.
|
KCVSLogManager(KeyColumnValueStoreManager storeManager,
Configuration config,
int[] readPartitionIds)
Opens a log manager against the provided KCVS store with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the log manager and all open logs (if they haven't already been explicitly closed)
|
KCVSLog |
openLog(String name)
Opens a log for the given name.
|
public static final ConfigOption<Boolean> LOG_FIXED_PARTITION
public static final ConfigOption<Integer> LOG_MAX_PARTITIONS
public static final int CLUSTER_SIZE_DIVIDER
LOG_MAX_PARTITIONS isn't set explicitly, the number of partitions is derived by taking the configured
GraphDatabaseConfiguration.CLUSTER_MAX_PARTITIONS and dividing
the number by this constant.public KCVSLogManager(KeyColumnValueStoreManager storeManager, Configuration config)
storeManager - config - public KCVSLogManager(KeyColumnValueStoreManager storeManager, Configuration config, int[] readPartitionIds)
storeManager - config - readPartitionIds - public KCVSLog openLog(String name) throws BackendException
LogManageropenLog in interface LogManagername - Name of the log to be openedBackendExceptionpublic void close()
throws BackendException
LogManagerclose in interface LogManagerBackendExceptionCopyright © 2012–2015. All rights reserved.