Class ConfigParameters
java.lang.Object
org.forgerock.opendj.server.embedded.ConfigParameters
Parameters to configure a directory server.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigParameters
Creates configuration parameters.configResolver
(PropertyResolver resolver) Sets thePropertyResolver
to use to resolve configuration properties.configurationFile
(Path filePath) Sets the path of the configuration filePath of the directory server.deploymentId
(DeploymentId deploymentId) Specifies theDeploymentId
which should be used for securing the deployment of the directory server.disableConnectionHandlers
(boolean disable) Sets the indicator allowing to disable the connection handlers.Returns the currently configuredPropertyResolver
ornull
if none has been defined.Sets the server ID of the directory server.serverInstallPath
(Path serverInstallPath) Sets the server installation path of the directory server.serverInstancePath
(Path serverInstancePath) Sets the instance path of the directory server.
-
Method Details
-
configParams
Creates configuration parameters.- Returns:
- the parameters
-
getConfigPropertyResolver
Returns the currently configuredPropertyResolver
ornull
if none has been defined.- Returns:
- the currently configured
PropertyResolver
ornull
.
-
deploymentId
Specifies theDeploymentId
which should be used for securing the deployment of the directory server. The deployment ID MUST be the same for all servers in the deployment. Create a new deployment ID for the first server, then re-use it for subsequent servers.Deployment ID is mandatory in a directory server setup hence this method must be called before
EmbeddedDirectoryServer.initializeConfiguration()
is called on the embedded DS associated to this object.- Parameters:
deploymentId
-DeploymentId
to use in the directory server.- Returns:
- this builder
- See Also:
-
serverInstallPath
Sets the server installation path of the directory server.The server installation path is the location where the binaries and default configuration is stored.
- Parameters:
serverInstallPath
-Path
to the server installation directory- Returns:
- this builder
-
serverId
Sets the server ID of the directory server.- Parameters:
serverId
- the server ID- Returns:
- this builder
-
serverInstancePath
Sets the instance path of the directory server.The instance path is the location where the data and live configuration is stored.
- Parameters:
serverInstancePath
-Path
to the instance directory- Returns:
- this builder
-
configurationFile
Sets the path of the configuration filePath of the directory server.- Parameters:
filePath
-Path
to the configuration file- Returns:
- this builder
-
disableConnectionHandlers
Sets the indicator allowing to disable the connection handlers.- Parameters:
disable
-true
to disable the connection handlers- Returns:
- this builder
-
configResolver
Sets thePropertyResolver
to use to resolve configuration properties.- Parameters:
resolver
- the property resolver to use- Returns:
- this builder
-