Interface PluggableBackendCfg
-
- All Superinterfaces:
BackendCfg,Configuration,LocalBackendCfg
- All Known Subinterfaces:
JEBackendCfg,PDBBackendCfg
public interface PluggableBackendCfg extends LocalBackendCfg
A server-side interface for querying Pluggable Backend settings.A Pluggable Backend stores application data in a pluggable database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBackendIndexAddListener(ConfigurationAddListener<BackendIndexCfg> listener)Registers to be notified when new Backend Indexes are added.voidaddBackendIndexDeleteListener(ConfigurationDeleteListener<BackendIndexCfg> listener)Registers to be notified when existing Backend Indexes are deleted.voidaddBackendVLVIndexAddListener(ConfigurationAddListener<BackendVLVIndexCfg> listener)Registers to be notified when new Backend VLV Indexes are added.voidaddBackendVLVIndexDeleteListener(ConfigurationDeleteListener<BackendVLVIndexCfg> listener)Registers to be notified when existing Backend VLV Indexes are deleted.voidaddPluggableChangeListener(ConfigurationChangeListener<PluggableBackendCfg> listener)Register to be notified when this Pluggable Backend is changed.Class<? extends PluggableBackendCfg>configurationClass()Gets the configuration class associated with this Pluggable Backend.BackendIndexCfggetBackendIndex(String name)Gets the named Backend Index.BackendVLVIndexCfggetBackendVLVIndex(String name)Gets the named Backend VLV Index.intgetCipherKeyLength()Gets the "cipher-key-length" property.StringgetCipherTransformation()Gets the "cipher-transformation" property.LonggetImportOffheapMemorySize()Gets the "import-offheap-memory-size" property.intgetIndexEntryLimit()Gets the "index-entry-limit" property.intgetIndexFilterAnalyzerMaxFilters()Gets the "index-filter-analyzer-max-filters" property.longgetPreloadTimeLimit()Gets the "preload-time-limit" property.LocalBackendCfgDefn.WritabilityModegetWritabilityMode()Gets the "writability-mode" property.booleanisCompactEncoding()Gets the "compact-encoding" property.booleanisConfidentialityEnabled()Gets the "confidentiality-enabled" property.booleanisEntriesCompressed()Gets the "entries-compressed" property.booleanisIndexFilterAnalyzerEnabled()Gets the "index-filter-analyzer-enabled" property.String[]listBackendIndexes()Lists the Backend Indexes.String[]listBackendVLVIndexes()Lists the Backend VLV Indexes.voidremoveBackendIndexAddListener(ConfigurationAddListener<BackendIndexCfg> listener)Deregisters an existing Backend Index configuration add listener.voidremoveBackendIndexDeleteListener(ConfigurationDeleteListener<BackendIndexCfg> listener)Deregisters an existing Backend Index configuration delete listener.voidremoveBackendVLVIndexAddListener(ConfigurationAddListener<BackendVLVIndexCfg> listener)Deregisters an existing Backend VLV Index configuration add listener.voidremoveBackendVLVIndexDeleteListener(ConfigurationDeleteListener<BackendVLVIndexCfg> listener)Deregisters an existing Backend VLV Index configuration delete listener.voidremovePluggableChangeListener(ConfigurationChangeListener<PluggableBackendCfg> listener)Deregister an existing Pluggable Backend configuration change listener.-
Methods inherited from interface org.forgerock.opendj.server.config.server.BackendCfg
addChangeListener, getBackendId, getBaseDN, isEnabled, removeChangeListener
-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.LocalBackendCfg
addLocalChangeListener, getJavaClass, removeLocalChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends PluggableBackendCfg> configurationClass()
Gets the configuration class associated with this Pluggable Backend.- Specified by:
configurationClassin interfaceBackendCfg- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceLocalBackendCfg- Returns:
- Returns the configuration class associated with this Pluggable Backend.
-
addPluggableChangeListener
void addPluggableChangeListener(ConfigurationChangeListener<PluggableBackendCfg> listener)
Register to be notified when this Pluggable Backend is changed.- Parameters:
listener- The Pluggable Backend configuration change listener.
-
removePluggableChangeListener
void removePluggableChangeListener(ConfigurationChangeListener<PluggableBackendCfg> listener)
Deregister an existing Pluggable Backend configuration change listener.- Parameters:
listener- The Pluggable Backend configuration change listener.
-
getCipherKeyLength
int getCipherKeyLength()
Gets the "cipher-key-length" property.Specifies the key length in bits for the preferred cipher.
- Returns:
- Returns the value of the "cipher-key-length" property.
-
getCipherTransformation
String getCipherTransformation()
Gets the "cipher-transformation" property.Specifies the cipher for the directory server. The syntax is "algorithm/mode/padding".
The full transformation is required: specifying only an algorithm and allowing the cipher provider to supply the default mode and padding is not supported, because there is no guarantee these default values are the same among different implementations. Some cipher algorithms, including RC4 and ARCFOUR, do not have a mode or padding, and hence must be specified using NONE for the mode field and NoPadding for the padding field. For example, RC4/NONE/NoPadding.
- Returns:
- Returns the value of the "cipher-transformation" property.
-
isCompactEncoding
boolean isCompactEncoding()
Gets the "compact-encoding" property.Indicates whether the backend should use a compact form when encoding entries by compressing the attribute descriptions and object class sets.
Note that this property applies only to the entries themselves and does not impact the index data.
- Returns:
- Returns the value of the "compact-encoding" property.
-
isConfidentialityEnabled
boolean isConfidentialityEnabled()
Gets the "confidentiality-enabled" property.Indicates whether the backend should make entries in database files readable only by Directory Server.
Confidentiality is achieved by enrypting entries before writing them to the underlying storage. Entry encryption will protect data on disk from unauthorised parties reading the files; for complete protection, also set confidentiality for sensitive attributes indexes. The property cannot be set to false if some of the indexes have confidentiality set to true.
- Returns:
- Returns the value of the "confidentiality-enabled" property.
-
isEntriesCompressed
boolean isEntriesCompressed()
Gets the "entries-compressed" property.Indicates whether the backend should attempt to compress entries before storing them in the database.
Note that this property applies only to the entries themselves and does not impact the index data. Further, the effectiveness of the compression is based on the type of data contained in the entry.
- Returns:
- Returns the value of the "entries-compressed" property.
-
getImportOffheapMemorySize
Long getImportOffheapMemorySize()
Gets the "import-offheap-memory-size" property.Specifies the amount of off-heap memory dedicated to the online operation (import-ldif, rebuild-index).
- Returns:
- Returns the value of the "import-offheap-memory-size" property.
-
getIndexEntryLimit
int getIndexEntryLimit()
Gets the "index-entry-limit" property.Specifies the maximum number of entries that is allowed to match a given index key before that particular index key is no longer maintained.
This property is analogous to the ALL IDs threshold in the Sun Java System Directory Server. Note that this is the default limit for the backend, and it may be overridden on a per-attribute basis.A value of 0 means there is no limit.
- Returns:
- Returns the value of the "index-entry-limit" property.
-
isIndexFilterAnalyzerEnabled
boolean isIndexFilterAnalyzerEnabled()
Gets the "index-filter-analyzer-enabled" property.Indicates whether to gather statistical information about the search filters processed by the directory server while evaluating the usage of indexes.
Analyzing indexes requires gathering search filter usage patterns from user requests, especially for values as specified in the filters and subsequently looking the status of those values into the index files. When a search requests is processed, internal or user generated, a first phase uses indexes to find potential entries to be returned. Depending on the search filter, if the index of one of the specified attributes matches too many entries (exceeds the index entry limit), the search becomes non-indexed. In any case, all entries thus gathered (or the entire DIT) are matched against the filter for actually returning the search result.
- Returns:
- Returns the value of the "index-filter-analyzer-enabled" property.
-
getIndexFilterAnalyzerMaxFilters
int getIndexFilterAnalyzerMaxFilters()
Gets the "index-filter-analyzer-max-filters" property.The maximum number of search filter statistics to keep.
When the maximum number of search filter is reached, the least used one will be deleted.
- Returns:
- Returns the value of the "index-filter-analyzer-max-filters" property.
-
getPreloadTimeLimit
long getPreloadTimeLimit()
Gets the "preload-time-limit" property.Specifies the length of time that the backend is allowed to spend "pre-loading" data when it is initialized.
The pre-load process is used to pre-populate the database cache, so that it can be more quickly available when the server is processing requests. A duration of zero means there is no pre-load.
- Returns:
- Returns the value of the "preload-time-limit" property.
-
getWritabilityMode
LocalBackendCfgDefn.WritabilityMode getWritabilityMode()
Gets the "writability-mode" property.Specifies the behavior that the backend should use when processing write operations.
- Specified by:
getWritabilityModein interfaceLocalBackendCfg- Returns:
- Returns the value of the "writability-mode" property.
-
listBackendIndexes
String[] listBackendIndexes()
Lists the Backend Indexes.- Returns:
- Returns an array containing the names of the Backend Indexes.
-
getBackendIndex
BackendIndexCfg getBackendIndex(String name) throws ConfigException
Gets the named Backend Index.- Parameters:
name- The name of the Backend Index to retrieve.- Returns:
- Returns the named Backend Index.
- Throws:
ConfigException- If the Backend Index could not be found or it could not be successfully decoded.
-
addBackendIndexAddListener
void addBackendIndexAddListener(ConfigurationAddListener<BackendIndexCfg> listener) throws ConfigException
Registers to be notified when new Backend Indexes are added.- Parameters:
listener- The Backend Index configuration add listener.- Throws:
ConfigException- If the add listener could not be registered.
-
removeBackendIndexAddListener
void removeBackendIndexAddListener(ConfigurationAddListener<BackendIndexCfg> listener)
Deregisters an existing Backend Index configuration add listener.- Parameters:
listener- The Backend Index configuration add listener.
-
addBackendIndexDeleteListener
void addBackendIndexDeleteListener(ConfigurationDeleteListener<BackendIndexCfg> listener) throws ConfigException
Registers to be notified when existing Backend Indexes are deleted.- Parameters:
listener- The Backend Index configuration delete listener.- Throws:
ConfigException- If the delete listener could not be registered.
-
removeBackendIndexDeleteListener
void removeBackendIndexDeleteListener(ConfigurationDeleteListener<BackendIndexCfg> listener)
Deregisters an existing Backend Index configuration delete listener.- Parameters:
listener- The Backend Index configuration delete listener.
-
listBackendVLVIndexes
String[] listBackendVLVIndexes()
Lists the Backend VLV Indexes.- Returns:
- Returns an array containing the names of the Backend VLV Indexes.
-
getBackendVLVIndex
BackendVLVIndexCfg getBackendVLVIndex(String name) throws ConfigException
Gets the named Backend VLV Index.- Parameters:
name- The name of the Backend VLV Index to retrieve.- Returns:
- Returns the named Backend VLV Index.
- Throws:
ConfigException- If the Backend VLV Index could not be found or it could not be successfully decoded.
-
addBackendVLVIndexAddListener
void addBackendVLVIndexAddListener(ConfigurationAddListener<BackendVLVIndexCfg> listener) throws ConfigException
Registers to be notified when new Backend VLV Indexes are added.- Parameters:
listener- The Backend VLV Index configuration add listener.- Throws:
ConfigException- If the add listener could not be registered.
-
removeBackendVLVIndexAddListener
void removeBackendVLVIndexAddListener(ConfigurationAddListener<BackendVLVIndexCfg> listener)
Deregisters an existing Backend VLV Index configuration add listener.- Parameters:
listener- The Backend VLV Index configuration add listener.
-
addBackendVLVIndexDeleteListener
void addBackendVLVIndexDeleteListener(ConfigurationDeleteListener<BackendVLVIndexCfg> listener) throws ConfigException
Registers to be notified when existing Backend VLV Indexes are deleted.- Parameters:
listener- The Backend VLV Index configuration delete listener.- Throws:
ConfigException- If the delete listener could not be registered.
-
removeBackendVLVIndexDeleteListener
void removeBackendVLVIndexDeleteListener(ConfigurationDeleteListener<BackendVLVIndexCfg> listener)
Deregisters an existing Backend VLV Index configuration delete listener.- Parameters:
listener- The Backend VLV Index configuration delete listener.
-
-