Class PDBBackend

    • Constructor Detail

      • PDBBackend

        public PDBBackend()
    • Method Detail

      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(PDBBackendCfg cfg,
                                                 List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons,
                                                 ServerContext serverContext)
        Description copied from class: Backend
        Indicates whether the provided configuration is acceptable for this backend. It should be possible to call this method on an uninitialized backend instance in order to determine whether the backend would be able to use the provided configuration.

        Note that implementations which use a subclass of the provided configuration class will likely need to cast the configuration to the appropriate subclass type.
        Overrides:
        isConfigurationAcceptable in class BackendImpl<PDBBackendCfg>
        Parameters:
        cfg - 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 context
        Returns:
        true if the provided configuration is acceptable for this backend, or false if not.
      • configureStorage

        protected Storage configureStorage​(PDBBackendCfg cfg,
                                           ServerContext serverContext)
                                    throws ConfigException
        Description copied from class: BackendImpl
        Creates the storage engine which will be used by this pluggable backend. Implementations should create and configure a new storage engine but not open it.
        Specified by:
        configureStorage in class BackendImpl<PDBBackendCfg>
        Parameters:
        cfg - the configuration object
        serverContext - this Directory Server intsance's server context
        Returns:
        The storage engine to be used by this pluggable backend.
        Throws:
        ConfigException - If there is an error in the configuration.