| | |
| | | argDisplayMap.put(ATTR_IMPORT_CLEAR_BACKEND, INFO_IMPORT_ARG_CLEAR_BACKEND.get()); |
| | | } |
| | | |
| | | |
| | | private boolean isCompressed; |
| | | private boolean isEncrypted; |
| | | private boolean overwrite; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | Entry taskEntry = getTaskEntry(); |
| | | |
| | | AttributeType typeLdifFile = getAttributeType(ATTR_IMPORT_LDIF_FILE); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | // Get the backend into which the LDIF should be imported. |
| | | Backend<?> backend = null; |
| | | HashSet<DN> defaultIncludeBranches; |
| | |
| | | return TaskState.STOPPED_BY_ERROR; |
| | | } |
| | | |
| | | |
| | | try |
| | | { |
| | | // Acquire an exclusive lock for the backend. |
| | |
| | | return TaskState.STOPPED_BY_ERROR; |
| | | } |
| | | |
| | | |
| | | // Launch the import. |
| | | try |
| | | { |
| | |
| | | logger.warn(WARN_LDIFIMPORT_CANNOT_UNLOCK_BACKEND, backend.getBackendID(), getExceptionMessage(e)); |
| | | return TaskState.COMPLETED_WITH_ERRORS; |
| | | } |
| | | |
| | | } |
| | | } |
| | | finally |
| | |
| | | DirectoryServer.notifyImportEnded(backend, importConfig, true); |
| | | } |
| | | |
| | | |
| | | // Clean up after the import by closing the import config. |
| | | importConfig.close(); |
| | | return getFinalTaskState(); |