352684 improve stopping
This commit is contained in:
parent
9fe3c8f67f
commit
3e621d312d
|
@ -39,8 +39,8 @@ public class ThreadMonitor extends AbstractLifeCycle implements Runnable
|
||||||
private Method findDeadlockedThreadsMethod;
|
private Method findDeadlockedThreadsMethod;
|
||||||
|
|
||||||
private Thread _runner;
|
private Thread _runner;
|
||||||
private boolean _done;
|
|
||||||
private Logger _logger;
|
private Logger _logger;
|
||||||
|
private volatile boolean _done = true;
|
||||||
|
|
||||||
private Map<Long,ExtThreadInfo> _extInfo;
|
private Map<Long,ExtThreadInfo> _extInfo;
|
||||||
|
|
||||||
|
@ -76,23 +76,6 @@ public class ThreadMonitor extends AbstractLifeCycle implements Runnable
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
|
||||||
/**
|
|
||||||
* @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart()
|
|
||||||
*/
|
|
||||||
public void doStart()
|
|
||||||
{
|
|
||||||
_done = false;
|
|
||||||
|
|
||||||
_runner = new Thread(this);
|
|
||||||
_runner.start();
|
|
||||||
|
|
||||||
Log.info("Thread Monitor started successfully");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
public int getScanInterval()
|
public int getScanInterval()
|
||||||
{
|
{
|
||||||
|
@ -129,6 +112,20 @@ public class ThreadMonitor extends AbstractLifeCycle implements Runnable
|
||||||
_stackDepth = stackDepth;
|
_stackDepth = stackDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
|
/**
|
||||||
|
* @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart()
|
||||||
|
*/
|
||||||
|
public void doStart()
|
||||||
|
{
|
||||||
|
_done = false;
|
||||||
|
|
||||||
|
_runner = new Thread(this);
|
||||||
|
_runner.start();
|
||||||
|
|
||||||
|
Log.info("Thread Monitor started successfully");
|
||||||
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStop()
|
* @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStop()
|
||||||
|
|
Loading…
Reference in New Issue