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

Jean-Noël Rouvignac
20.36.2016 2a3158aad80fc910b83336485b3e545dea50066c
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
@@ -12,7 +12,7 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2008-2010 Sun Microsystems, Inc.
 * Portions Copyright 2015 ForgeRock AS.
 * Portions Copyright 2015-2016 ForgeRock AS.
 */
package org.opends.guitools.controlpanel.browser;
@@ -29,7 +29,6 @@
 *
 * The queue will basically start a certain number of threads and this threads
 * will "consume" the AbstractNodeTask objects that are added to this queue.
 *
 */
class NodeSearcherQueue implements Runnable {
@@ -65,10 +64,7 @@
  }
  /**
   * Shutdown this queue.
   * All the associated threads are stopped.
   */
  /** Shutdown this queue. All the associated threads are stopped. */
  public void shutdown() {
    threadGroup.interrupt();
  }
@@ -131,9 +127,7 @@
  }
  /**
   * Cancel all the object from this queue.
   */
  /** Cancel all the object from this queue. */
  public synchronized void cancelAll() {
    waitingQueue.clear();
    for (BasicNode node : workingList.keySet())
@@ -225,6 +219,7 @@
   * the NodeSearchQueue constructor.
   * Basically this method fetches objects from the waiting queue and runs them.
   */
  @Override
  public void run() {
    boolean interrupted = false;
    while (!interrupted)