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

neil_a_wilson
06.42.2007 87634d96bab9626809797c5d2dad68b07ec2961f
Update the server so that it is possible to start in a mode in which the server
is completely functional but does not accept connections from external clients.
This will be available if the org.opends.server.DisableConnectionHandlers
property is set with a value of "true".

OpenDS Issue Number: 1487
2 files modified
25 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 14 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/util/ServerConstants.java 11 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -967,6 +967,14 @@
      }
      // Determine whether or not we should start the connection handlers.
      String disableProperty =
                  System.getProperty(PROPERTY_DISABLE_CONNECTION_HANDLERS);
      boolean startConnectionHandlers =
                   ((disableProperty == null) ||
                    (! disableProperty.equalsIgnoreCase("true")));
      // Initialize all the schema elements.
      initializeSchema();
@@ -1052,7 +1060,10 @@
      // Initialize all the connection handlers.
      if (startConnectionHandlers)
      {
      initializeConnectionHandlers();
      }
      // Initialize all the monitor providers.
@@ -1093,10 +1104,13 @@
      // At this point, we should be ready to go.  Start all the connection
      // handlers.
      if (startConnectionHandlers)
      {
      for (ConnectionHandler c : connectionHandlers)
      {
        c.start();
      }
      }
      // Mark the current time as the start time and indicate that the server is
opends/src/server/org/opends/server/util/ServerConstants.java
@@ -2236,6 +2236,17 @@
  /**
   * The name of the system property that can be used to disable any connection
   * handler that may be enabled in the server configuration.  This may be used
   * to start the server in a mode where it will not accept any external
   * connections, but may still be used for processing internal operations.
   */
  public static final String PROPERTY_DISABLE_CONNECTION_HANDLERS =
       "org.opends.server.DisableConnectionHandlers";
  /**
   * The name of the system property that can be used to indicate whether
   * components should be allowed to use the <CODE>Runtime.exec</CODE> method.
   * If this property is set and the value is anything other than "false",