| | |
| | | /** A cache of BackupDirectories. */ |
| | | private HashMap<File,CachedBackupDirectory> backupDirectories; |
| | | |
| | | /** The server context. */ |
| | | private ServerContext serverContext; |
| | | |
| | | /** |
| | | * To avoid parsing and reparsing the contents of backup.info files, we |
| | | * cache the BackupDirectory for each directory using this class. |
| | |
| | | @Override |
| | | public void configureBackend(BackupBackendCfg config, ServerContext serverContext) throws ConfigException |
| | | { |
| | | this.serverContext = serverContext; |
| | | // Make sure that a configuration entry was provided. If not, then we will |
| | | // not be able to complete initialization. |
| | | if (config == null) |
| | |
| | | // Register the backup base as a private suffix. |
| | | try |
| | | { |
| | | DirectoryServer.registerBaseDN(backupBaseDN, this, true); |
| | | serverContext.getBackendConfigManager().registerBaseDN(backupBaseDN, this, true); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | |
| | | try |
| | | { |
| | | DirectoryServer.deregisterBaseDN(backupBaseDN); |
| | | serverContext.getBackendConfigManager().deregisterBaseDN(backupBaseDN); |
| | | } |
| | | catch (Exception e) |
| | | { |