| | |
| | | import java.util.Collection; |
| | | import java.util.HashSet; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.io.File; |
| | | |
| | | import static org.opends.server.loggers.Debug.debugException; |
| | | |
| | |
| | | /** |
| | | * The backend directory (file system pathname). |
| | | */ |
| | | private String backendDirectory = null; |
| | | private File backendDirectory = null; |
| | | |
| | | /** |
| | | * Number of times we should retry database transactions that get aborted |
| | |
| | | String message = getMessage(msgID, configEntry.getDN().toString()); |
| | | throw new ConfigException(msgID, message); |
| | | } |
| | | backendDirectory = backendDirectoryAttr.activeValue(); |
| | | backendDirectory = new File(backendDirectoryAttr.activeValue()); |
| | | if (!backendDirectory.isAbsolute()) |
| | | { |
| | | backendDirectory = new File(DirectoryServer.getServerRoot(), |
| | | backendDirectoryAttr.activeValue()); |
| | | } |
| | | |
| | | // ds-cfg-backendIndexEntryLimit |
| | | // Optional, single-valued config attribute requiring admin action on change |
| | |
| | | /** |
| | | * Get the backend directory. |
| | | * |
| | | * @return A string containing the pathname to the backend directory |
| | | * @return A file representing the backend directory |
| | | */ |
| | | public String getBackendDirectory() |
| | | public File getBackendDirectory() |
| | | { |
| | | return backendDirectory; |
| | | } |