@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class EmbeddedUtils extends Object
Constructor and Description |
---|
EmbeddedUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
initializeForClientUse()
Sets up a number of internal server data structures to ensure that they are
properly initialized for use.
|
static boolean |
isRunning()
Indicates whether the Directory Server is currently running.
|
static void |
restartServer(String className,
LocalizableMessage reason,
DirectoryEnvironmentConfig config)
Attempts to restart the Directory Server.
|
static void |
startServer(DirectoryEnvironmentConfig config)
Attempts to start the Directory Server.
|
static void |
stopServer(String className,
LocalizableMessage reason)
Attempts to stop the Directory Server.
|
public EmbeddedUtils()
public static boolean isRunning()
true
if the server is currently running, or false
if not.public static void startServer(DirectoryEnvironmentConfig config) throws InitializationException
config
- The environment configuration to use for the server.InitializationException
- If the Directory Server is already
running, or if an error occurs during
server initialization or startup.public static void stopServer(String className, LocalizableMessage reason)
className
- The name of the class that initiated the shutdown.reason
- A message explaining the reason for the shutdown.public static void restartServer(String className, LocalizableMessage reason, DirectoryEnvironmentConfig config)
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.public static void initializeForClientUse()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.