Package org.opends.server.util
Class EmbeddedUtils
- java.lang.Object
-
- org.opends.server.util.EmbeddedUtils
-
@Deprecated @PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class EmbeddedUtils extends Object
Deprecated.UseEmbeddedDirectoryServerclass insteadThis class provides a number of utility methods for using OpenDS in an embedded manner (i.e., running within the same JVM as another application and controlled by that application).
-
-
Constructor Summary
Constructors Constructor Description EmbeddedUtils()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidinitializeForClientUse()Deprecated.UseEmbeddedDirectoryServerclass insteadstatic booleanisRunning()Deprecated.UseEmbeddedDirectoryServerclass insteadstatic voidrestartServer(String className, org.forgerock.i18n.LocalizableMessage reason, DirectoryEnvironmentConfig config)Deprecated.UseEmbeddedDirectoryServerclass insteadstatic voidstartServer(DirectoryEnvironmentConfig config)Deprecated.UseEmbeddedDirectoryServerclass insteadstatic voidstopServer(String className, org.forgerock.i18n.LocalizableMessage reason)Deprecated.UseEmbeddedDirectoryServerclass instead
-
-
-
Method Detail
-
isRunning
@Deprecated public static boolean isRunning()
Deprecated.UseEmbeddedDirectoryServerclass insteadIndicates whether the Directory Server is currently running.- Returns:
trueif the server is currently running, orfalseif not.
-
startServer
@Deprecated public static void startServer(DirectoryEnvironmentConfig config) throws InitializationException
Deprecated.UseEmbeddedDirectoryServerclass insteadAttempts 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.UseEmbeddedDirectoryServerclass insteadAttempts 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.UseEmbeddedDirectoryServerclass insteadAttempts 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.UseEmbeddedDirectoryServerclass insteadSets 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.
-
-