Class BackendCreationHelper


  • public class BackendCreationHelper
    extends Object
    Utility class which can be used by tools to create a new backend with default indexes.
    • Constructor Detail

      • BackendCreationHelper

        public BackendCreationHelper()
    • Method Detail

      • createBackendOffline

        public static void createBackendOffline​(String backendName,
                                                Collection<DN> baseDNs,
                                                ManagedObjectDefinition<? extends BackendCfgClient,​? extends BackendCfg> backendType)
                                         throws Exception
        Add a new backend with the provided name in the config.ldif file.
        Parameters:
        backendName - The new backend name
        baseDNs - The base dns to add in the new backend.
        backendType - The backend type
        Throws:
        Exception - If any problems occurred
      • createBackendOnline

        public static void createBackendOnline​(String backendName,
                                               Collection<DN> baseDNs,
                                               ManagedObjectDefinition<? extends BackendCfgClient,​? extends BackendCfg> backendType,
                                               ConnectionWrapper conn)
                                        throws Exception
        Add a new backend with the provided name in the config.ldif file.
        Parameters:
        backendName - The new backend name
        baseDNs - The base dns to add in the new backend.
        backendType - The backend type
        conn - The connection to the server
        Throws:
        Exception - If any problems occurred