BackendImpl.java revision f0a048d41a13eca4cba405da9403c2469ca3d1ea
2362N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
524N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
524N/A private void readerBegin()
524N/A private void writerBegin()
private void writerEnd()
private void waitUntilQuiescent()
catch (InterruptedException e)
public void configureBackend(LocalDBBackendCfg cfg, ServerContext serverContext) throws ConfigException
public void openBackend()
if (mustOpenRootContainer())
throw new InitializationException(
catch (Exception e)
public void closeBackend()
catch (Exception e)
catch (DatabaseException e)
switch (indexType)
case PRESENCE:
case EQUALITY:
case SUBSTRING:
case SUBINITIAL:
case SUBANY:
case SUBFINAL:
case GREATER_OR_EQUAL:
case LESS_OR_EQUAL:
case APPROXIMATE:
catch (Exception e)
return supportedControls;
return baseDNs;
public long getEntryCount()
catch (Exception e)
throws DirectoryException
throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, ERR_SEARCH_NO_SUCH_OBJECT.get(baseDN));
readerBegin();
return count;
catch (DatabaseException e)
throw createDirectoryException(e);
readerEnd();
readerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
readerEnd();
writerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
writerEnd();
writerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
writerEnd();
writerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
writerEnd();
writerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
writerEnd();
readerBegin();
catch (DatabaseException e)
throw createDirectoryException(e);
readerEnd();
throws DirectoryException
if (openRootContainer)
catch (IdentifiedException e)
if (e instanceof DirectoryException)
throw (DirectoryException) e;
private boolean mustOpenRootContainer()
throws DirectoryException
if(!openRootContainer)
return envConfig;
if (openRootContainer)
catch (DatabaseException e)
throw createDirectoryException(e);
catch (JebException e)
e.getMessageObject());
if (openRootContainer)
catch (JebException e)
catch (InitializationException e)
catch (DatabaseException e)
public void removeBackup(BackupDirectory backupDirectory, String backupID) throws DirectoryException
private long lastFileSize;
public boolean hasNext()
// at least one file was deleted, the iterator must be renewed based on last file previously available
catch (DirectoryException e)
return hasNext;
if (hasNext()) {
throw new NoSuchElementException();
public boolean hasPrevious()
public int nextIndex()
public int previousIndex()
public void remove()
private final long latestFileSize;
JELogFileFilter() {
public boolean isDirectRestore()
return null;
catch(IOException e)
LocalizableMessage msg = ERR_CANNOT_RENAME_RESTORE_DIRECTORY.get(restoreDirectory, targetDirectory.getPath());
public boolean isConfigurationChangeAcceptable(
} catch (Exception e) {
return failure;
catch (Exception e)
return ccr;
diskMonitor.registerMonitoredDirectory(getBackendID(), getDirectory(), newCfg.getDiskLowThreshold(),
catch (Exception e)
return ccr;
return null;
return rootContainer;
public void clearBackend()
return new DirectoryException(
return alerts;
return rc;
catch (DatabaseException e) {
public void preloadEntryCache() throws
public void diskSpaceRestored(File directory, long lowThresholdInBytes, long fullThresholdInBytes) {