| | |
| | | */ |
| | | package org.opends.server.util.embedded; |
| | | |
| | | import org.forgerock.util.Reject; |
| | | |
| | | /** |
| | | * Parameters to configure a directory server. |
| | | */ |
| | |
| | | return serverRootDirectory; |
| | | } |
| | | |
| | | /** This value may be {@code null}, it must always be checked. */ |
| | | String getServerInstanceDirectory() |
| | | { |
| | | // provides the expected default value if not set |
| | | return serverInstanceDirectory; |
| | | } |
| | | |
| | |
| | | public ConfigParameters toParams() |
| | | { |
| | | ConfigParameters p = params; |
| | | Reject.ifNull(p.serverRootDirectory, p.configurationFile); |
| | | this.params = new ConfigParameters(); |
| | | return p; |
| | | } |