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

pgamba
25.06.2007 9516aa8db8085f0fa983117ef4af952dfa8ae3f1
opends/src/server/org/opends/server/tasks/InitializeTask.java
@@ -185,11 +185,10 @@
  /**
   * Set the state for the current task.
   *
   * @param newState The new state value to set
   * @param de  When the new state is different from COMPLETED_SUCCESSFULLY
   * this is the exception that contains the cause of the failure.
   */
  public void setState(TaskState newState, DirectoryException de)
  public void updateTaskCompletionState(DirectoryException de)
  {
    try
    {
@@ -197,11 +196,15 @@
      {
        initTaskError = de.getMessageObject();
      }
      if (de == null)
        initState =  TaskState.COMPLETED_SUCCESSFULLY;
      else
        initState =  TaskState.STOPPED_BY_ERROR;
      if (debugEnabled())
      {
        TRACER.debugInfo("InitializeTask/setState: %s", newState);
        TRACER.debugInfo("InitializeTask/setState: %s", initState);
      }
      initState = newState;
      synchronized (initState)
      {
        initState.notify();