public interface PDBBackendCfg extends PluggableBackendCfg
A PDB Backend stores application data in a Persistit database.
Modifier and Type | Method and Description |
---|---|
void |
addPDBChangeListener(ConfigurationChangeListener<PDBBackendCfg> listener)
Register to be notified when this PDB Backend is changed.
|
Class<? extends PDBBackendCfg> |
configurationClass()
Gets the configuration class associated with this PDB Backend.
|
int |
getDBCachePercent()
Gets the "db-cache-percent" property.
|
long |
getDBCacheSize()
Gets the "db-cache-size" property.
|
long |
getDBCheckpointerWakeupInterval()
Gets the "db-checkpointer-wakeup-interval" property.
|
String |
getDBDirectory()
Gets the "db-directory" property.
|
String |
getDBDirectoryPermissions()
Gets the "db-directory-permissions" property.
|
long |
getDiskFullThreshold()
Gets the "disk-full-threshold" property.
|
long |
getDiskLowThreshold()
Gets the "disk-low-threshold" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
boolean |
isDBTxnNoSync()
Gets the "db-txn-no-sync" property.
|
void |
removePDBChangeListener(ConfigurationChangeListener<PDBBackendCfg> listener)
Deregister an existing PDB Backend configuration change listener.
|
addBackendIndexAddListener, addBackendIndexDeleteListener, addBackendVLVIndexAddListener, addBackendVLVIndexDeleteListener, addPluggableChangeListener, getBackendIndex, getBackendVLVIndex, getCipherKeyLength, getCipherTransformation, getImportOffheapMemorySize, getIndexEntryLimit, getIndexFilterAnalyzerMaxFilters, getPreloadTimeLimit, getWritabilityMode, isCompactEncoding, isConfidentialityEnabled, isEntriesCompressed, isIndexFilterAnalyzerEnabled, listBackendIndexes, listBackendVLVIndexes, removeBackendIndexAddListener, removeBackendIndexDeleteListener, removeBackendVLVIndexAddListener, removeBackendVLVIndexDeleteListener, removePluggableChangeListener
addChangeListener, getBackendId, getBaseDN, isEnabled, removeChangeListener
dn
Class<? extends PDBBackendCfg> configurationClass()
configurationClass
in interface BackendCfg
configurationClass
in interface Configuration
configurationClass
in interface PluggableBackendCfg
void addPDBChangeListener(ConfigurationChangeListener<PDBBackendCfg> listener)
listener
- The PDB Backend configuration change listener.void removePDBChangeListener(ConfigurationChangeListener<PDBBackendCfg> listener)
listener
- The PDB Backend configuration change listener.int getDBCachePercent()
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.
long getDBCacheSize()
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.
long getDBCheckpointerWakeupInterval()
Specifies the maximum length of time that may pass between checkpoints.
This setting controls the elapsed time between attempts to write a checkpoint to the journal. A longer interval allows more updates to accumulate in buffers before they are required to be written to disk, but also potentially causes recovery from an abrupt termination (crash) to take more time.
String getDBDirectory()
Specifies the path to the filesystem directory that is used to hold the Persistit 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.
String getDBDirectoryPermissions()
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.
boolean isDBTxnNoSync()
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).
long getDiskFullThreshold()
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.
long getDiskLowThreshold()
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.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the backend implementation.
getJavaClass
in interface BackendCfg
Copyright 2010-2017 ForgeRock AS.