mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
26.21.2007 5ceb2e9601d2501d021d0c61188ec913076555a0
opends/src/server/org/opends/server/backends/jeb/RootContainer.java
@@ -44,7 +44,7 @@
import org.opends.server.types.ConfigChangeResult;
import org.opends.server.types.ResultCode;
import org.opends.server.api.Backend;
import org.opends.server.admin.std.server.JEBackendCfg;
import org.opends.server.admin.std.server.LocalDBBackendCfg;
import org.opends.server.admin.server.ConfigurationChangeListener;
import org.opends.server.core.DirectoryServer;
import org.opends.server.config.ConfigException;
@@ -66,7 +66,7 @@
 * of the entry containers.
 */
public class RootContainer
     implements ConfigurationChangeListener<JEBackendCfg>
     implements ConfigurationChangeListener<LocalDBBackendCfg>
{
  /**
   * The tracer object for the debug logger.
@@ -82,7 +82,7 @@
  /**
   * The backend configuration.
   */
  private JEBackendCfg config;
  private LocalDBBackendCfg config;
  /**
   * The backend to which this entry root container belongs.
@@ -119,7 +119,7 @@
   * @param backend A reference to the JE back end that is creating this
   *                root container.
   */
  public RootContainer(Backend backend, JEBackendCfg config)
  public RootContainer(Backend backend, LocalDBBackendCfg config)
  {
    this.env = null;
    this.monitor = null;
@@ -128,7 +128,7 @@
    this.config = config;
    this.compressedSchema = null;
    config.addJEChangeListener(this);
    config.addLocalDBChangeListener(this);
  }
  /**
@@ -143,7 +143,7 @@
      throws DatabaseException, ConfigException
  {
    // Determine the backend database directory.
    File backendDirectory = getFileForPath(config.getBackendDirectory());
    File backendDirectory = getFileForPath(config.getDBDirectory());
    //Make sure the directory is valid.
    if (!backendDirectory.isDirectory())
@@ -157,7 +157,7 @@
    try
    {
      backendPermission =
          FilePermission.decodeUNIXMode(config.getBackendMode());
          FilePermission.decodeUNIXMode(config.getDBDirectoryPermissions());
    }
    catch(Exception e)
    {
@@ -226,7 +226,7 @@
    }
    compressedSchema = new JECompressedSchema(env);
    openAndRegisterEntryContainers(config.getBackendBaseDN());
    openAndRegisterEntryContainers(config.getBaseDN());
  }
  /**
@@ -520,7 +520,7 @@
      env = null;
    }
    config.removeJEChangeListener(this);
    config.removeLocalDBChangeListener(this);
  }
  /**
@@ -632,7 +632,7 @@
   *
   * @return The JE backend configuration used by this root container.
   */
  public JEBackendCfg getConfiguration()
  public LocalDBBackendCfg getConfiguration()
  {
    return config;
  }
@@ -708,12 +708,12 @@
   * {@inheritDoc}
   */
  public boolean isConfigurationChangeAcceptable(
      JEBackendCfg cfg,
      LocalDBBackendCfg cfg,
      List<Message> unacceptableReasons)
  {
    boolean acceptable = true;
    File backendDirectory = getFileForPath(cfg.getBackendDirectory());
    File backendDirectory = getFileForPath(cfg.getDBDirectory());
    //Make sure the directory is valid.
    if (!backendDirectory.isDirectory())
    {
@@ -726,7 +726,7 @@
    try
    {
      FilePermission newBackendPermission =
          FilePermission.decodeUNIXMode(cfg.getBackendMode());
          FilePermission.decodeUNIXMode(cfg.getDBDirectoryPermissions());
      //Make sure the mode will allow the server itself access to
      //the database
@@ -765,7 +765,7 @@
  /**
   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationChange(JEBackendCfg cfg)
  public ConfigChangeResult applyConfigurationChange(LocalDBBackendCfg cfg)
  {
    ConfigChangeResult ccr;
    boolean adminActionRequired = false;