Interface JEBackendCfgClient
-
- All Superinterfaces:
BackendCfgClient,ConfigurationClient,LocalBackendCfgClient,PluggableBackendCfgClient
public interface JEBackendCfgClient extends PluggableBackendCfgClient
A client-side interface for reading and modifying JE Backend settings.A JE Backend stores application data in a Berkeley DB Java Edition database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends JEBackendCfgClient,? extends JEBackendCfg>definition()Get the configuration definition associated with this JE Backend.intgetDBCachePercent()Gets the "db-cache-percent" property.longgetDBCacheSize()Gets the "db-cache-size" property.longgetDBCheckpointerBytesInterval()Gets the "db-checkpointer-bytes-interval" property.longgetDBCheckpointerWakeupInterval()Gets the "db-checkpointer-wakeup-interval" property.intgetDBCleanerMinUtilization()Gets the "db-cleaner-min-utilization" property.StringgetDBDirectory()Gets the "db-directory" property.StringgetDBDirectoryPermissions()Gets the "db-directory-permissions" property.intgetDBEvictorCoreThreads()Gets the "db-evictor-core-threads" property.longgetDBEvictorKeepAlive()Gets the "db-evictor-keep-alive" property.intgetDBEvictorMaxThreads()Gets the "db-evictor-max-threads" property.intgetDBEvictorNodesPerScan()Gets the "db-evictor-nodes-per-scan" property.intgetDBLogFilecacheSize()Gets the "db-log-filecache-size" property.longgetDBLogFileMax()Gets the "db-log-file-max" property.StringgetDBLoggingLevel()Gets the "db-logging-level" property.IntegergetDBNumCleanerThreads()Gets the "db-num-cleaner-threads" property.IntegergetDBNumLockTables()Gets the "db-num-lock-tables" property.longgetDiskFullThreshold()Gets the "disk-full-threshold" property.longgetDiskLowThreshold()Gets the "disk-low-threshold" property.StringgetJavaClass()Gets the "java-class" property.SortedSet<String>getJEProperty()Gets the "je-property" property.booleanisDBEvictorLruOnly()Gets the "db-evictor-lru-only" property.booleanisDBLoggingFileHandlerOn()Gets the "db-logging-file-handler-on" property.booleanisDBRunCleaner()Gets the "db-run-cleaner" property.booleanisDBTxnNoSync()Gets the "db-txn-no-sync" property.booleanisDBTxnWriteNoSync()Gets the "db-txn-write-no-sync" property.voidsetDBCachePercent(Integer value)Sets the "db-cache-percent" property.voidsetDBCacheSize(Long value)Sets the "db-cache-size" property.voidsetDBCheckpointerBytesInterval(Long value)Sets the "db-checkpointer-bytes-interval" property.voidsetDBCheckpointerWakeupInterval(Long value)Sets the "db-checkpointer-wakeup-interval" property.voidsetDBCleanerMinUtilization(Integer value)Sets the "db-cleaner-min-utilization" property.voidsetDBDirectory(String value)Sets the "db-directory" property.voidsetDBDirectoryPermissions(String value)Sets the "db-directory-permissions" property.voidsetDBEvictorCoreThreads(Integer value)Sets the "db-evictor-core-threads" property.voidsetDBEvictorKeepAlive(Long value)Sets the "db-evictor-keep-alive" property.voidsetDBEvictorLruOnly(Boolean value)Sets the "db-evictor-lru-only" property.voidsetDBEvictorMaxThreads(Integer value)Sets the "db-evictor-max-threads" property.voidsetDBEvictorNodesPerScan(Integer value)Sets the "db-evictor-nodes-per-scan" property.voidsetDBLogFilecacheSize(Integer value)Sets the "db-log-filecache-size" property.voidsetDBLogFileMax(Long value)Sets the "db-log-file-max" property.voidsetDBLoggingFileHandlerOn(Boolean value)Sets the "db-logging-file-handler-on" property.voidsetDBLoggingLevel(String value)Sets the "db-logging-level" property.voidsetDBNumCleanerThreads(Integer value)Sets the "db-num-cleaner-threads" property.voidsetDBNumLockTables(Integer value)Sets the "db-num-lock-tables" property.voidsetDBRunCleaner(Boolean value)Sets the "db-run-cleaner" property.voidsetDBTxnNoSync(Boolean value)Sets the "db-txn-no-sync" property.voidsetDBTxnWriteNoSync(Boolean value)Sets the "db-txn-write-no-sync" property.voidsetDiskFullThreshold(Long value)Sets the "disk-full-threshold" property.voidsetDiskLowThreshold(Long value)Sets the "disk-low-threshold" property.voidsetJavaClass(String value)Sets the "java-class" property.voidsetJEProperty(Collection<String> values)Sets the "je-property" property.-
Methods inherited from interface org.forgerock.opendj.server.config.client.BackendCfgClient
getBackendId, getBaseDN, isEnabled, setBackendId, setBaseDN, setEnabled
-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Methods inherited from interface org.forgerock.opendj.server.config.client.PluggableBackendCfgClient
createBackendIndex, createBackendVLVIndex, getBackendIndex, getBackendVLVIndex, getCipherKeyLength, getCipherTransformation, getImportOffheapMemorySize, getIndexEntryLimit, getIndexFilterAnalyzerMaxFilters, getPreloadTimeLimit, getWritabilityMode, isCompactEncoding, isConfidentialityEnabled, isEntriesCompressed, isIndexFilterAnalyzerEnabled, listBackendIndexes, listBackendVLVIndexes, removeBackendIndex, removeBackendVLVIndex, setCipherKeyLength, setCipherTransformation, setCompactEncoding, setConfidentialityEnabled, setEntriesCompressed, setImportOffheapMemorySize, setIndexEntryLimit, setIndexFilterAnalyzerEnabled, setIndexFilterAnalyzerMaxFilters, setPreloadTimeLimit, setWritabilityMode
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends JEBackendCfgClient,? extends JEBackendCfg> definition()
Get the configuration definition associated with this JE Backend.- Specified by:
definitionin interfaceBackendCfgClient- Specified by:
definitionin interfaceConfigurationClient- Specified by:
definitionin interfaceLocalBackendCfgClient- Specified by:
definitionin interfacePluggableBackendCfgClient- Returns:
- Returns the configuration definition associated with this JE Backend.
-
getDBCachePercent
int getDBCachePercent()
Gets the "db-cache-percent" property.Specifies the percentage of JVM memory to allocate to the database cache.
Specifies the percentage of memory available to the JVM that should be used for caching database contents. Note that this is only used if the value of the db-cache-size property is set to "0 MB". Otherwise, the value of that property is used instead to control the cache size configuration.
- Returns:
- Returns the value of the "db-cache-percent" property.
-
setDBCachePercent
void setDBCachePercent(Integer value) throws PropertyException
Sets the "db-cache-percent" property.Specifies the percentage of JVM memory to allocate to the database cache.
Specifies the percentage of memory available to the JVM that should be used for caching database contents. Note that this is only used if the value of the db-cache-size property is set to "0 MB". Otherwise, the value of that property is used instead to control the cache size configuration.
- Parameters:
value- The value of the "db-cache-percent" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBCacheSize
long getDBCacheSize()
Gets the "db-cache-size" property.The amount of JVM memory to allocate to the database cache.
Specifies the amount of memory that should be used for caching database contents. A value of "0 MB" indicates that the db-cache-percent property should be used instead to specify the cache size.
- Returns:
- Returns the value of the "db-cache-size" property.
-
setDBCacheSize
void setDBCacheSize(Long value) throws PropertyException
Sets the "db-cache-size" property.The amount of JVM memory to allocate to the database cache.
Specifies the amount of memory that should be used for caching database contents. A value of "0 MB" indicates that the db-cache-percent property should be used instead to specify the cache size.
- Parameters:
value- The value of the "db-cache-size" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBCheckpointerBytesInterval
long getDBCheckpointerBytesInterval()
Gets the "db-checkpointer-bytes-interval" property.Specifies the maximum number of bytes that may be written to the database before it is forced to perform a checkpoint.
This can be used to bound the recovery time that may be required if the database environment is opened without having been properly closed. If this property is set to a non-zero value, the checkpointer wakeup interval is not used. To use time-based checkpointing, set this property to zero.
- Returns:
- Returns the value of the "db-checkpointer-bytes-interval" property.
-
setDBCheckpointerBytesInterval
void setDBCheckpointerBytesInterval(Long value) throws PropertyException
Sets the "db-checkpointer-bytes-interval" property.Specifies the maximum number of bytes that may be written to the database before it is forced to perform a checkpoint.
This can be used to bound the recovery time that may be required if the database environment is opened without having been properly closed. If this property is set to a non-zero value, the checkpointer wakeup interval is not used. To use time-based checkpointing, set this property to zero.
- Parameters:
value- The value of the "db-checkpointer-bytes-interval" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBCheckpointerWakeupInterval
long getDBCheckpointerWakeupInterval()
Gets the "db-checkpointer-wakeup-interval" property.Specifies the maximum length of time that may pass between checkpoints.
Note that this is only used if the value of the checkpointer bytes interval is zero.
- Returns:
- Returns the value of the "db-checkpointer-wakeup-interval" property.
-
setDBCheckpointerWakeupInterval
void setDBCheckpointerWakeupInterval(Long value) throws PropertyException
Sets the "db-checkpointer-wakeup-interval" property.Specifies the maximum length of time that may pass between checkpoints.
Note that this is only used if the value of the checkpointer bytes interval is zero.
- Parameters:
value- The value of the "db-checkpointer-wakeup-interval" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBCleanerMinUtilization
int getDBCleanerMinUtilization()
Gets the "db-cleaner-min-utilization" property.Specifies the occupancy percentage for "live" data in this backend's database.
When the amount of "live" data in the database drops below this value, cleaners will act to increase the occupancy percentage by compacting the database.
- Returns:
- Returns the value of the "db-cleaner-min-utilization" property.
-
setDBCleanerMinUtilization
void setDBCleanerMinUtilization(Integer value) throws PropertyException
Sets the "db-cleaner-min-utilization" property.Specifies the occupancy percentage for "live" data in this backend's database.
When the amount of "live" data in the database drops below this value, cleaners will act to increase the occupancy percentage by compacting the database.
- Parameters:
value- The value of the "db-cleaner-min-utilization" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBDirectory
String getDBDirectory()
Gets the "db-directory" property.Specifies the path to the filesystem directory that is used to hold the Berkeley DB Java Edition database files containing the data for this backend.
The path may be either an absolute path or a path relative to the directory containing the base of the OpenDJ directory server installation. The path may be any valid directory path in which the server has appropriate permissions to read and write files and has sufficient space to hold the database contents.
- Returns:
- Returns the value of the "db-directory" property.
-
setDBDirectory
void setDBDirectory(String value) throws PropertyException
Sets the "db-directory" property.Specifies the path to the filesystem directory that is used to hold the Berkeley DB Java Edition database files containing the data for this backend.
The path may be either an absolute path or a path relative to the directory containing the base of the OpenDJ directory server installation. The path may be any valid directory path in which the server has appropriate permissions to read and write files and has sufficient space to hold the database contents.
- Parameters:
value- The value of the "db-directory" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBDirectoryPermissions
String getDBDirectoryPermissions()
Gets the "db-directory-permissions" property.Specifies the permissions that should be applied to the directory containing the server database files.
They should be expressed as three-digit octal values, which is the traditional representation for UNIX file permissions. The three digits represent the permissions that are available for the directory's owner, group members, and other users (in that order), and each digit is the octal representation of the read, write, and execute bits. Note that this only impacts permissions on the database directory and not on the files written into that directory. On UNIX systems, the user's umask controls permissions given to the database files.
- Returns:
- Returns the value of the "db-directory-permissions" property.
-
setDBDirectoryPermissions
void setDBDirectoryPermissions(String value) throws PropertyException
Sets the "db-directory-permissions" property.Specifies the permissions that should be applied to the directory containing the server database files.
They should be expressed as three-digit octal values, which is the traditional representation for UNIX file permissions. The three digits represent the permissions that are available for the directory's owner, group members, and other users (in that order), and each digit is the octal representation of the read, write, and execute bits. Note that this only impacts permissions on the database directory and not on the files written into that directory. On UNIX systems, the user's umask controls permissions given to the database files.
- Parameters:
value- The value of the "db-directory-permissions" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBEvictorCoreThreads
int getDBEvictorCoreThreads()
Gets the "db-evictor-core-threads" property.Specifies the core number of threads in the eviction thread pool.
Specifies the core number of threads in the eviction thread pool. These threads help keep memory usage within cache bounds, offloading work from application threads. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Returns:
- Returns the value of the "db-evictor-core-threads" property.
-
setDBEvictorCoreThreads
void setDBEvictorCoreThreads(Integer value) throws PropertyException
Sets the "db-evictor-core-threads" property.Specifies the core number of threads in the eviction thread pool.
Specifies the core number of threads in the eviction thread pool. These threads help keep memory usage within cache bounds, offloading work from application threads. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Parameters:
value- The value of the "db-evictor-core-threads" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBEvictorKeepAlive
long getDBEvictorKeepAlive()
Gets the "db-evictor-keep-alive" property.The duration that excess threads in the eviction thread pool will stay idle. After this period, idle threads will terminate.
The duration that excess threads in the eviction thread pool will stay idle. After this period, idle threads will terminate. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Returns:
- Returns the value of the "db-evictor-keep-alive" property.
-
setDBEvictorKeepAlive
void setDBEvictorKeepAlive(Long value) throws PropertyException
Sets the "db-evictor-keep-alive" property.The duration that excess threads in the eviction thread pool will stay idle. After this period, idle threads will terminate.
The duration that excess threads in the eviction thread pool will stay idle. After this period, idle threads will terminate. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Parameters:
value- The value of the "db-evictor-keep-alive" property.- Throws:
PropertyException- If the new value is invalid.
-
isDBEvictorLruOnly
boolean isDBEvictorLruOnly()
Gets the "db-evictor-lru-only" property.Indicates whether the database should evict existing data from the cache based on an LRU policy (where the least recently used information will be evicted first).
If set to "false", then the eviction keeps internal nodes of the underlying Btree in the cache over leaf nodes, even if the leaf nodes have been accessed more recently. This may be a better configuration for databases in which only a very small portion of the data is cached.
- Returns:
- Returns the value of the "db-evictor-lru-only" property.
-
setDBEvictorLruOnly
void setDBEvictorLruOnly(Boolean value) throws PropertyException
Sets the "db-evictor-lru-only" property.Indicates whether the database should evict existing data from the cache based on an LRU policy (where the least recently used information will be evicted first).
If set to "false", then the eviction keeps internal nodes of the underlying Btree in the cache over leaf nodes, even if the leaf nodes have been accessed more recently. This may be a better configuration for databases in which only a very small portion of the data is cached.
- Parameters:
value- The value of the "db-evictor-lru-only" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBEvictorMaxThreads
int getDBEvictorMaxThreads()
Gets the "db-evictor-max-threads" property.Specifies the maximum number of threads in the eviction thread pool.
Specifies the maximum number of threads in the eviction thread pool. These threads help keep memory usage within cache bounds, offloading work from application threads. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Returns:
- Returns the value of the "db-evictor-max-threads" property.
-
setDBEvictorMaxThreads
void setDBEvictorMaxThreads(Integer value) throws PropertyException
Sets the "db-evictor-max-threads" property.Specifies the maximum number of threads in the eviction thread pool.
Specifies the maximum number of threads in the eviction thread pool. These threads help keep memory usage within cache bounds, offloading work from application threads. db-evictor-core-threads, db-evictor-max-threads and db-evictor-keep-alive are used to configure the core, max and keepalive attributes for the eviction thread pool.
- Parameters:
value- The value of the "db-evictor-max-threads" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBEvictorNodesPerScan
int getDBEvictorNodesPerScan()
Gets the "db-evictor-nodes-per-scan" property.Specifies the number of Btree nodes that should be evicted from the cache in a single pass if it is determined that it is necessary to free existing data in order to make room for new information.
Changes to this property do not take effect until the backend is restarted. It is recommended that you also change this property when you set db-evictor-lru-only to false. This setting controls the number of Btree nodes that are considered, or sampled, each time a node is evicted. A setting of 10 often produces good results, but this may vary from application to application. The larger the nodes per scan, the more accurate the algorithm. However, don't set it too high. When considering larger numbers of nodes for each eviction, the evictor may delay the completion of a given database operation, which impacts the response time of the application thread. In JE 4.1 and later, setting this value too high in an application that is largely CPU bound can reduce the effectiveness of cache eviction. It's best to start with the default value, and increase it gradually to see if it is beneficial for your application.
- Returns:
- Returns the value of the "db-evictor-nodes-per-scan" property.
-
setDBEvictorNodesPerScan
void setDBEvictorNodesPerScan(Integer value) throws PropertyException
Sets the "db-evictor-nodes-per-scan" property.Specifies the number of Btree nodes that should be evicted from the cache in a single pass if it is determined that it is necessary to free existing data in order to make room for new information.
Changes to this property do not take effect until the backend is restarted. It is recommended that you also change this property when you set db-evictor-lru-only to false. This setting controls the number of Btree nodes that are considered, or sampled, each time a node is evicted. A setting of 10 often produces good results, but this may vary from application to application. The larger the nodes per scan, the more accurate the algorithm. However, don't set it too high. When considering larger numbers of nodes for each eviction, the evictor may delay the completion of a given database operation, which impacts the response time of the application thread. In JE 4.1 and later, setting this value too high in an application that is largely CPU bound can reduce the effectiveness of cache eviction. It's best to start with the default value, and increase it gradually to see if it is beneficial for your application.
- Parameters:
value- The value of the "db-evictor-nodes-per-scan" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBLogFilecacheSize
int getDBLogFilecacheSize()
Gets the "db-log-filecache-size" property.Specifies the size of the file handle cache.
The file handle cache is used to keep as much opened log files as possible. When the cache is smaller than the number of logs, the database needs to close some handles and open log files it needs, resulting in less optimal performances. Ideally, the size of the cache should be higher than the number of files contained in the database. Make sure the OS number of open files per process is also tuned appropriately.
- Returns:
- Returns the value of the "db-log-filecache-size" property.
-
setDBLogFilecacheSize
void setDBLogFilecacheSize(Integer value) throws PropertyException
Sets the "db-log-filecache-size" property.Specifies the size of the file handle cache.
The file handle cache is used to keep as much opened log files as possible. When the cache is smaller than the number of logs, the database needs to close some handles and open log files it needs, resulting in less optimal performances. Ideally, the size of the cache should be higher than the number of files contained in the database. Make sure the OS number of open files per process is also tuned appropriately.
- Parameters:
value- The value of the "db-log-filecache-size" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBLogFileMax
long getDBLogFileMax()
Gets the "db-log-file-max" property.Specifies the maximum size for a database log file.
- Returns:
- Returns the value of the "db-log-file-max" property.
-
setDBLogFileMax
void setDBLogFileMax(Long value) throws PropertyException
Sets the "db-log-file-max" property.Specifies the maximum size for a database log file.
- Parameters:
value- The value of the "db-log-file-max" property.- Throws:
PropertyException- If the new value is invalid.
-
isDBLoggingFileHandlerOn
boolean isDBLoggingFileHandlerOn()
Gets the "db-logging-file-handler-on" property.Indicates whether the database should maintain a je.info file in the same directory as the database log directory.
This file contains information about the internal processing performed by the underlying database.
- Returns:
- Returns the value of the "db-logging-file-handler-on" property.
-
setDBLoggingFileHandlerOn
void setDBLoggingFileHandlerOn(Boolean value) throws PropertyException
Sets the "db-logging-file-handler-on" property.Indicates whether the database should maintain a je.info file in the same directory as the database log directory.
This file contains information about the internal processing performed by the underlying database.
- Parameters:
value- The value of the "db-logging-file-handler-on" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBLoggingLevel
String getDBLoggingLevel()
Gets the "db-logging-level" property.Specifies the log level that should be used by the database when it is writing information into the je.info file.
The database trace logging level is (in increasing order of verbosity) chosen from: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL.
- Returns:
- Returns the value of the "db-logging-level" property.
-
setDBLoggingLevel
void setDBLoggingLevel(String value) throws PropertyException
Sets the "db-logging-level" property.Specifies the log level that should be used by the database when it is writing information into the je.info file.
The database trace logging level is (in increasing order of verbosity) chosen from: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL.
- Parameters:
value- The value of the "db-logging-level" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBNumCleanerThreads
Integer getDBNumCleanerThreads()
Gets the "db-num-cleaner-threads" property.Specifies the number of threads that the backend should maintain to keep the database log files at or near the desired utilization.
In environments with high write throughput, multiple cleaner threads may be required to maintain the desired utilization.
- Returns:
- Returns the value of the "db-num-cleaner-threads" property.
-
setDBNumCleanerThreads
void setDBNumCleanerThreads(Integer value) throws PropertyException
Sets the "db-num-cleaner-threads" property.Specifies the number of threads that the backend should maintain to keep the database log files at or near the desired utilization.
In environments with high write throughput, multiple cleaner threads may be required to maintain the desired utilization.
- Parameters:
value- The value of the "db-num-cleaner-threads" property.- Throws:
PropertyException- If the new value is invalid.
-
getDBNumLockTables
Integer getDBNumLockTables()
Gets the "db-num-lock-tables" property.Specifies the number of lock tables that are used by the underlying database.
This can be particularly important to help improve scalability by avoiding contention on systems with large numbers of CPUs. The value of this configuration property should be set to a prime number that is less than or equal to the number of worker threads configured for use in the server.
- Returns:
- Returns the value of the "db-num-lock-tables" property.
-
setDBNumLockTables
void setDBNumLockTables(Integer value) throws PropertyException
Sets the "db-num-lock-tables" property.Specifies the number of lock tables that are used by the underlying database.
This can be particularly important to help improve scalability by avoiding contention on systems with large numbers of CPUs. The value of this configuration property should be set to a prime number that is less than or equal to the number of worker threads configured for use in the server.
- Parameters:
value- The value of the "db-num-lock-tables" property.- Throws:
PropertyException- If the new value is invalid.
-
isDBRunCleaner
boolean isDBRunCleaner()
Gets the "db-run-cleaner" property.Indicates whether the cleaner threads should be enabled to compact the database.
The cleaner threads are used to periodically compact the database when it reaches a percentage of occupancy lower than the amount specified by the db-cleaner-min-utilization property. They identify database files with a low percentage of live data, and relocate their remaining live data to the end of the log.
- Returns:
- Returns the value of the "db-run-cleaner" property.
-
setDBRunCleaner
void setDBRunCleaner(Boolean value) throws PropertyException
Sets the "db-run-cleaner" property.Indicates whether the cleaner threads should be enabled to compact the database.
The cleaner threads are used to periodically compact the database when it reaches a percentage of occupancy lower than the amount specified by the db-cleaner-min-utilization property. They identify database files with a low percentage of live data, and relocate their remaining live data to the end of the log.
- Parameters:
value- The value of the "db-run-cleaner" property.- Throws:
PropertyException- If the new value is invalid.
-
isDBTxnNoSync
boolean isDBTxnNoSync()
Gets the "db-txn-no-sync" property.Indicates whether database writes should be primarily written to an internal buffer but not immediately written to disk.
Setting the value of this configuration attribute to "true" may improve write performance but could cause the most recent changes to be lost if the OpenDJ directory server or the underlying JVM exits abnormally, or if an OS or hardware failure occurs (a behavior similar to running with transaction durability disabled in the Sun Java System Directory Server).
- Returns:
- Returns the value of the "db-txn-no-sync" property.
-
setDBTxnNoSync
void setDBTxnNoSync(Boolean value) throws PropertyException
Sets the "db-txn-no-sync" property.Indicates whether database writes should be primarily written to an internal buffer but not immediately written to disk.
Setting the value of this configuration attribute to "true" may improve write performance but could cause the most recent changes to be lost if the OpenDJ directory server or the underlying JVM exits abnormally, or if an OS or hardware failure occurs (a behavior similar to running with transaction durability disabled in the Sun Java System Directory Server).
- Parameters:
value- The value of the "db-txn-no-sync" property.- Throws:
PropertyException- If the new value is invalid.
-
isDBTxnWriteNoSync
boolean isDBTxnWriteNoSync()
Gets the "db-txn-write-no-sync" property.Indicates whether the database should synchronously flush data as it is written to disk.
If this value is set to "false", then all data written to disk is synchronously flushed to persistent storage and thereby providing full durability. If it is set to "true", then data may be cached for a period of time by the underlying operating system before actually being written to disk. This may improve performance, but could cause the most recent changes to be lost in the event of an underlying OS or hardware failure (but not in the case that the OpenDJ directory server or the JVM exits abnormally).
- Returns:
- Returns the value of the "db-txn-write-no-sync" property.
-
setDBTxnWriteNoSync
void setDBTxnWriteNoSync(Boolean value) throws PropertyException
Sets the "db-txn-write-no-sync" property.Indicates whether the database should synchronously flush data as it is written to disk.
If this value is set to "false", then all data written to disk is synchronously flushed to persistent storage and thereby providing full durability. If it is set to "true", then data may be cached for a period of time by the underlying operating system before actually being written to disk. This may improve performance, but could cause the most recent changes to be lost in the event of an underlying OS or hardware failure (but not in the case that the OpenDJ directory server or the JVM exits abnormally).
- Parameters:
value- The value of the "db-txn-write-no-sync" property.- Throws:
PropertyException- If the new value is invalid.
-
getDiskFullThreshold
long getDiskFullThreshold()
Gets the "disk-full-threshold" property.Full disk threshold to limit database updates
When the available free space on the disk used by this database instance falls below the value specified, no updates are permitted and the server returns an UNWILLING_TO_PERFORM error. Updates are allowed again as soon as free space rises above the threshold.
- Returns:
- Returns the value of the "disk-full-threshold" property.
-
setDiskFullThreshold
void setDiskFullThreshold(Long value) throws PropertyException
Sets the "disk-full-threshold" property.Full disk threshold to limit database updates
When the available free space on the disk used by this database instance falls below the value specified, no updates are permitted and the server returns an UNWILLING_TO_PERFORM error. Updates are allowed again as soon as free space rises above the threshold.
- Parameters:
value- The value of the "disk-full-threshold" property.- Throws:
PropertyException- If the new value is invalid.
-
getDiskLowThreshold
long getDiskLowThreshold()
Gets the "disk-low-threshold" property.Low disk threshold to limit database updates
Specifies the "low" free space on the disk. When the available free space on the disk used by this database instance falls below the value specified, protocol updates on this database are permitted only by a user with the BYPASS_LOCKDOWN privilege.
- Returns:
- Returns the value of the "disk-low-threshold" property.
-
setDiskLowThreshold
void setDiskLowThreshold(Long value) throws PropertyException
Sets the "disk-low-threshold" property.Low disk threshold to limit database updates
Specifies the "low" free space on the disk. When the available free space on the disk used by this database instance falls below the value specified, protocol updates on this database are permitted only by a user with the BYPASS_LOCKDOWN privilege.
- Parameters:
value- The value of the "disk-low-threshold" property.- Throws:
PropertyException- If the new value is invalid.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Specified by:
getJavaClassin interfaceBackendCfgClient- Specified by:
getJavaClassin interfaceLocalBackendCfgClient- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
void setJavaClass(String value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the backend implementation.
- Specified by:
setJavaClassin interfaceBackendCfgClient- Specified by:
setJavaClassin interfaceLocalBackendCfgClient- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
getJEProperty
SortedSet<String> getJEProperty()
Gets the "je-property" property.Specifies the database and environment properties for the Berkeley DB Java Edition database serving the data for this backend.
Any Berkeley DB Java Edition property can be specified using the following form: property-name=property-value. Refer to OpenDJ documentation for further information on related properties, their implications, and range values. The definitive identification of all the property parameters is available in the example.properties file of Berkeley DB Java Edition distribution.
- Returns:
- Returns the values of the "je-property" property.
-
setJEProperty
void setJEProperty(Collection<String> values) throws PropertyException
Sets the "je-property" property.Specifies the database and environment properties for the Berkeley DB Java Edition database serving the data for this backend.
Any Berkeley DB Java Edition property can be specified using the following form: property-name=property-value. Refer to OpenDJ documentation for further information on related properties, their implications, and range values. The definitive identification of all the property parameters is available in the example.properties file of Berkeley DB Java Edition distribution.
- Parameters:
values- The values of the "je-property" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
-