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

boli
21.16.2009 f8beabcaa885bfef30f2bd4011d040186cf9ea78
opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
@@ -22,12 +22,13 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 */
package org.opends.server.core;
import org.opends.server.api.DirectoryThread;
import java.util.Iterator;
import java.util.LinkedList;
@@ -38,7 +39,7 @@
 * shutdown process and may help nudge it along if it appears to get hung.
 */
public class ServerShutdownMonitor
       extends Thread
       extends DirectoryThread
{
  // Indicates whether the monitor has completed and the shutdown may be
  // finalized with a call to System.exit;
@@ -56,7 +57,7 @@
   */
  public ServerShutdownMonitor()
  {
    setName("Directory Server Shutdown Monitor");
    super("Directory Server Shutdown Monitor");
    setDaemon(true);
@@ -71,7 +72,7 @@
    // we'll make sure to allocate enough room for double the threads that we
    // think are currently running.
    threadList = new LinkedList<Thread>();
    ThreadGroup threadGroup = DirectoryServer.getDirectoryThreadGroup();
    ThreadGroup threadGroup = DirectoryThread.DIRECTORY_THREAD_GROUP;
    Thread[] threadArray = new Thread[threadGroup.activeCount() * 2];
    int numThreads = threadGroup.enumerate(threadArray, true);
    for (int i=0; i < numThreads; i++)