| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public LDIFImportResult importLDIF(LDIFImportConfig importConfig) throws DirectoryException |
| | | public LDIFImportResult importLDIF(LDIFImportConfig importConfig, ServerContext serverContext) |
| | | throws DirectoryException |
| | | { |
| | | RuntimeInformation.logInfo(); |
| | | |
| | |
| | | } |
| | | |
| | | rootContainer = initializeRootContainer(); |
| | | return rootContainer.importLDIF(importConfig); |
| | | return rootContainer.importLDIF(importConfig, serverContext); |
| | | } |
| | | catch (StorageRuntimeException e) |
| | | { |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void rebuildBackend(RebuildConfig rebuildConfig) |
| | | public void rebuildBackend(RebuildConfig rebuildConfig, ServerContext serverContext) |
| | | throws InitializationException, ConfigException, DirectoryException |
| | | { |
| | | // If the backend already has the root container open, we must use the same |
| | |
| | | { |
| | | rootContainer = initializeRootContainer(); |
| | | } |
| | | final Importer importer = new Importer(rebuildConfig, (PersistitBackendCfg) cfg); // FIXME JNR remove cast |
| | | final Importer importer = new Importer(rebuildConfig, (PersistitBackendCfg) cfg, serverContext); // FIXME JNR remove cast |
| | | importer.rebuildIndexes(rootContainer); |
| | | } |
| | | catch (ExecutionException execEx) |