C - the type of the BackendCfg for the current backendpublic abstract class Backend<C extends org.forgerock.opendj.config.Configuration> extends Object
| Constructor and Description |
|---|
Backend() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
configureBackend(C cfg,
ServerContext serverContext)
Configure this backend based on the information in the provided configuration.
|
abstract void |
finalizeBackend()
Performs any necessary work to finalize this backend.
|
String |
getBackendID()
Retrieves the unique identifier for this backend.
|
abstract Set<org.forgerock.opendj.ldap.DN> |
getBaseDNs()
Retrieves the set of base-level DNs that may be used within this
backend.
|
abstract Set<String> |
getSupportedControls()
Retrieves the OIDs of the controls that may be supported by this
backend.
|
abstract Set<String> |
getSupportedFeatures()
Retrieves the OIDs of the features that may be supported by this
backend.
|
boolean |
isConfigurationAcceptable(C configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons,
ServerContext serverContext)
Indicates whether the provided configuration is acceptable for
this backend.
|
abstract boolean |
isDefaultRoute()
Indicates whether this backend should be considered a default (wild-card) route.
|
abstract boolean |
isPrivateBackend()
Indicates whether this backend holds private data or user data.
|
abstract void |
openBackend()
Opens this backend based on the information provided when the backend was configured.
|
void |
setBackendID(String backendID)
Specifies the unique identifier for this backend.
|
public abstract void configureBackend(C cfg, ServerContext serverContext) throws org.forgerock.opendj.config.server.ConfigException
cfg - The configuration of this backend.serverContext - The server context for this instanceorg.forgerock.opendj.config.server.ConfigException - If there is an error in the configuration.public abstract void openBackend()
throws org.forgerock.opendj.config.server.ConfigException,
InitializationException
org.forgerock.opendj.config.server.ConfigException - If an unrecoverable problem arises while opening the backend.InitializationException - If a problem occurs during opening that is not
related to the server configuration.configureBackend(C, org.opends.server.core.ServerContext)public abstract void finalizeBackend()
configureBackend() has been called.
This may be called during the Directory Server shutdown process or if a backend is disabled
with the server online.
It must not return until the backend is closed.
This method may not throw any exceptions. If any problems are encountered, then they may be logged but the closure should progress as completely as possible.
public final String getBackendID()
public abstract Set<org.forgerock.opendj.ldap.DN> getBaseDNs()
public abstract boolean isDefaultRoute()
true if the backend should be considered as the default route, false otherwisepublic abstract Set<String> getSupportedControls()
public abstract Set<String> getSupportedFeatures()
public boolean isConfigurationAcceptable(C configuration, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons, ServerContext serverContext)
configuration - The backend configuration for which
to make the determination.unacceptableReasons - A list that may be used to hold the
reasons that the provided
configuration is not acceptable.serverContext - this Directory Server instance's server contexttrue if the provided configuration is acceptable
for this backend, or false if not.public abstract boolean isPrivateBackend()
true if this backend holds private data, or
false if it holds user data.public final void setBackendID(String backendID)
backendID - The unique identifier for this backend.Copyright © 2010-2020 Wren Security. All Rights Reserved.