public class ConfigurableEnvironment extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_CHECKPOINTER_BYTES_INTERVAL
The name of the attribute which configures how many bytes are written to
the log before the checkpointer runs.
|
static String |
ATTR_CHECKPOINTER_WAKEUP_INTERVAL
The name of the attribute which configures the amount of time between
runs of the checkpointer.
|
static String |
ATTR_CLEANER_MIN_UTILIZATION
The name of the attribute which configures the minimum percentage of log
space that must be used in log files.
|
static String |
ATTR_DATABASE_CACHE_PERCENT
The name of the attribute which configures the database cache size as a
percentage of Java VM heap size.
|
static String |
ATTR_DATABASE_CACHE_SIZE
The name of the attribute which configures the database cache size as an
approximate number of bytes.
|
static String |
ATTR_DATABASE_LOG_FILE_MAX
The name of the attribute which configures the maximum size of each
individual JE log file, in bytes.
|
static String |
ATTR_DATABASE_RUN_CLEANER
The name of the attribute which configures whether the database background
cleaner thread runs.
|
static String |
ATTR_DATABASE_TXN_NO_SYNC
The name of the attribute which configures whether data updated by a
database transaction is forced to disk.
|
static String |
ATTR_DATABASE_TXN_WRITE_NO_SYNC
The name of the attribute which configures whether data updated by a
database transaction is written from the Java VM to the O/S.
|
static String |
ATTR_EVICTOR_CORE_THREADS
The name of the attribute which configures the minimum number of threads
of the database cache evictor pool.
|
static String |
ATTR_EVICTOR_KEEP_ALIVE
The name of the attribute which configures the time excess threads
of the database cache evictor pool are kept alive.
|
static String |
ATTR_EVICTOR_LRU_ONLY
The name of the attribute which configures the database cache eviction algorithm.
|
static String |
ATTR_EVICTOR_MAX_THREADS
The name of the attribute which configures the maximum number of threads
of the database cache evictor pool.
|
static String |
ATTR_EVICTOR_NODES_PER_SCAN
The name of the attribute which configures the number of nodes in one scan
of the database cache evictor.
|
static String |
ATTR_JE_PROPERTY
The name of the attribute which may specify any native JE properties.
|
static String |
ATTR_LOG_FILECACHE_SIZE
The name of the attribute which configures the size of the file handle cache.
|
static String |
ATTR_LOGGING_FILE_HANDLER_ON
The name of the attribute which configures whether the logging file
handler will be on or off.
|
static String |
ATTR_LOGGING_LEVEL
The name of the attribute which configures the trace logging message level.
|
static String |
ATTR_NUM_CLEANER_THREADS
The name of the attribute which configures the number threads
allocated by the cleaner for log file processing.
|
static String |
ATTR_NUM_LOCK_TABLES
The name of the attribute which configures the number of lock tables.
|
Constructor and Description |
---|
ConfigurableEnvironment() |
Modifier and Type | Method and Description |
---|---|
static com.sleepycat.je.EnvironmentConfig |
defaultConfig()
Create a JE environment configuration with default values.
|
static String |
getAttributeForProperty(String jeProperty)
Get the name of the configuration attribute associated with a JE property.
|
static com.sleepycat.je.EnvironmentConfig |
parseConfigEntry(JEBackendCfg cfg)
Parse a configuration associated with a JE environment and create an
environment config from it.
|
static com.sleepycat.je.EnvironmentConfig |
setJEProperties(com.sleepycat.je.EnvironmentConfig envConfig,
SortedSet<String> jeProperties,
HashMap<String,String> configAttrMap)
Parse, validate and set native JE environment properties for
a given environment config.
|
public static final String ATTR_DATABASE_CACHE_PERCENT
public static final String ATTR_DATABASE_CACHE_SIZE
public static final String ATTR_DATABASE_TXN_NO_SYNC
public static final String ATTR_DATABASE_TXN_WRITE_NO_SYNC
public static final String ATTR_DATABASE_RUN_CLEANER
public static final String ATTR_CLEANER_MIN_UTILIZATION
public static final String ATTR_DATABASE_LOG_FILE_MAX
public static final String ATTR_EVICTOR_LRU_ONLY
public static final String ATTR_EVICTOR_NODES_PER_SCAN
public static final String ATTR_EVICTOR_CORE_THREADS
public static final String ATTR_EVICTOR_MAX_THREADS
public static final String ATTR_EVICTOR_KEEP_ALIVE
public static final String ATTR_LOGGING_FILE_HANDLER_ON
public static final String ATTR_LOGGING_LEVEL
public static final String ATTR_CHECKPOINTER_BYTES_INTERVAL
public static final String ATTR_CHECKPOINTER_WAKEUP_INTERVAL
public static final String ATTR_NUM_LOCK_TABLES
public static final String ATTR_NUM_CLEANER_THREADS
public static final String ATTR_LOG_FILECACHE_SIZE
public static final String ATTR_JE_PROPERTY
public ConfigurableEnvironment()
public static String getAttributeForProperty(String jeProperty)
jeProperty
- The name of the JE property.public static com.sleepycat.je.EnvironmentConfig defaultConfig()
public static com.sleepycat.je.EnvironmentConfig parseConfigEntry(JEBackendCfg cfg) throws org.forgerock.opendj.config.server.ConfigException
cfg
- The configuration to be parsed.org.forgerock.opendj.config.server.ConfigException
- If there is an error in the provided configuration
entry.public static com.sleepycat.je.EnvironmentConfig setJEProperties(com.sleepycat.je.EnvironmentConfig envConfig, SortedSet<String> jeProperties, HashMap<String,String> configAttrMap) throws org.forgerock.opendj.config.server.ConfigException
envConfig
- The JE environment config for which to set
the properties.jeProperties
- The JE environment properties to parse,
validate and set.configAttrMap
- Component supported JE properties to
their configuration attributes map.org.forgerock.opendj.config.server.ConfigException
- If there is an error while parsing,
validating and setting any of the properties provided.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.