Class EmbeddedUtils

    • Constructor Detail

      • EmbeddedUtils

        public EmbeddedUtils()
        Deprecated.
    • Method Detail

      • isRunning

        @Deprecated
        public static boolean isRunning()
        Deprecated.
        Use EmbeddedDirectoryServer class instead
        Indicates whether the Directory Server is currently running.
        Returns:
        true if the server is currently running, or false if not.
      • startServer

        @Deprecated
        public static void startServer​(DirectoryEnvironmentConfig config)
                                throws InitializationException
        Deprecated.
        Use EmbeddedDirectoryServer class instead
        Attempts to start the Directory Server.
        Parameters:
        config - The environment configuration to use for the server.
        Throws:
        InitializationException - If the Directory Server is already running, or if an error occurs during server initialization or startup.
      • stopServer

        @Deprecated
        public static void stopServer​(String className,
                                      org.forgerock.i18n.LocalizableMessage reason)
        Deprecated.
        Use EmbeddedDirectoryServer class instead
        Attempts to stop the Directory Server.
        Parameters:
        className - The name of the class that initiated the shutdown.
        reason - A message explaining the reason for the shutdown.
      • restartServer

        @Deprecated
        public static void restartServer​(String className,
                                         org.forgerock.i18n.LocalizableMessage reason,
                                         DirectoryEnvironmentConfig config)
        Deprecated.
        Use EmbeddedDirectoryServer class instead
        Attempts to restart the Directory Server. This will perform an in-core restart in which the existing server instance will be shut down, a new instance will be created, and it will be reinitialized and restarted.
        Parameters:
        className - The name of the class that initiated the restart.
        reason - A message explaining the reason for the retart.
        config - The environment configuration to use for the new server instance.
      • initializeForClientUse

        @Deprecated
        public static void initializeForClientUse()
        Deprecated.
        Use EmbeddedDirectoryServer class instead
        Sets up a number of internal server data structures to ensure that they are properly initialized for use. This is necessary if server libraries are going to be used without the server running (e.g., to facilitate use in an LDAP client API, for DN processing, etc.). This will have no effect if the server has already been initialized for client use.