| | |
| | | * This 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). |
| | | * |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | @org.opends.server.types.PublicAPI( |
| | | stability=org.opends.server.types.StabilityLevel.UNCOMMITTED, |
| | | mayInstantiate=false, |
| | |
| | | * |
| | | * @return {@code true} if the server is currently running, or {@code false} |
| | | * if not. |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | public static boolean isRunning() |
| | | { |
| | | return DirectoryServer.isRunning(); |
| | |
| | | * @throws InitializationException If the Directory Server is already |
| | | * running, or if an error occurs during |
| | | * server initialization or startup. |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | public static void startServer(DirectoryEnvironmentConfig config) |
| | | throws InitializationException |
| | | { |
| | |
| | | * |
| | | * @param className The name of the class that initiated the shutdown. |
| | | * @param reason A message explaining the reason for the shutdown. |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | public static void stopServer(String className, LocalizableMessage reason) |
| | | { |
| | | DirectoryServer.shutDown(className, reason); |
| | |
| | | * @param reason A message explaining the reason for the retart. |
| | | * @param config The environment configuration to use for the new server |
| | | * instance. |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | public static void restartServer(String className, LocalizableMessage reason, |
| | | DirectoryEnvironmentConfig config) |
| | | { |
| | |
| | | * 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. |
| | | * @deprecated Use {@code EmbeddedDirectoryServer} class instead |
| | | */ |
| | | @Deprecated |
| | | public static void initializeForClientUse() |
| | | { |
| | | DirectoryServer.getInstance(); |