blob: 68a164e6efabda99a293238fe993f6c9cf2f81b7 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Wed Jun 07 15:10:55 EDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ThreadMonitor (Jetty :: Project 9.2.22.v20170606 API)</title>
<meta name="date" content="2017-06-07">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ThreadMonitor (Jetty :: Project 9.2.22.v20170606 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ThreadMonitor.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1149868-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/eclipse/jetty/monitor/JMXMonitor.html" title="class in org.eclipse.jetty.monitor"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/monitor/ThreadMonitor.html" target="_top">Frames</a></li>
<li><a href="ThreadMonitor.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.jetty.monitor</div>
<h2 title="Class ThreadMonitor" class="title">Class ThreadMonitor</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.AbstractLifeCycle</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.jetty.monitor.ThreadMonitor</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>, <a href="../../../../org/eclipse/jetty/util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></dd>
</dl>
<hr>
<br>
<pre><a href="../../../../org/eclipse/jetty/util/annotation/ManagedObject.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedObject</a>(<a href="../../../../org/eclipse/jetty/util/annotation/ManagedObject.html#value()">value</a>="Busy Thread Monitor")
public class <span class="strong">ThreadMonitor</span>
extends <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a>
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.AbstractLifeCycleListener.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.AbstractLifeCycleListener</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_org.eclipse.jetty.util.component.LifeCycle">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.eclipse.jetty.util.component.<a href="../../../../org/eclipse/jetty/util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3>
<code><a href="../../../../org/eclipse/jetty/util/component/LifeCycle.Listener.html" title="interface in org.eclipse.jetty.util.component">LifeCycle.Listener</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#FAILED">FAILED</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#RUNNING">RUNNING</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#STARTED">STARTED</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#STARTING">STARTING</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#STOPPED">STOPPED</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#STOPPING">STOPPING</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#ThreadMonitor()">ThreadMonitor</a></strong>()</code>
<div class="block">Instantiates a new thread monitor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#ThreadMonitor(int)">ThreadMonitor</a></strong>(int&nbsp;intervalMs)</code>
<div class="block">Instantiates a new thread monitor.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#ThreadMonitor(int,%20int)">ThreadMonitor</a></strong>(int&nbsp;intervalMs,
int&nbsp;threshold)</code>
<div class="block">Instantiates a new thread monitor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#ThreadMonitor(int,%20int,%20int)">ThreadMonitor</a></strong>(int&nbsp;intervalMs,
int&nbsp;threshold,
int&nbsp;depth)</code>
<div class="block">Instantiates a new thread monitor.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#ThreadMonitor(int,%20int,%20int,%20int)">ThreadMonitor</a></strong>(int&nbsp;intervalMs,
int&nbsp;threshold,
int&nbsp;depth,
int&nbsp;trail)</code>
<div class="block">Instantiates a new thread monitor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#doStart()">doStart</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#doStop()">doStop</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected long[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getAllThreadIds()">getAllThreadIds</a></strong>()</code>
<div class="block">Retrieve all avaliable thread ids</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getBusyThreshold()">getBusyThreshold</a></strong>()</code>
<div class="block">Gets the busy threshold.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getDumpable()">getDumpable</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getLogInterval()">getLogInterval</a></strong>()</code>
<div class="block">Gets the log interval.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getLogThreshold()">getLogThreshold</a></strong>()</code>
<div class="block">Gets the log threshold.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getScanInterval()">getScanInterval</a></strong>()</code>
<div class="block">Gets the scan interval.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getStackDepth()">getStackDepth</a></strong>()</code>
<div class="block">Gets the stack depth.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getThreadCpuTime(long)">getThreadCpuTime</a></strong>(long&nbsp;id)</code>
<div class="block">Retrieve the cpu time for specified thread.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#getTrailLength()">getTrailLength</a></strong>()</code>
<div class="block">Gets the stack trace trail length.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#init()">init</a></strong>()</code>
<div class="block">Initialize JMX objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#logCpuUsage(int,%20int)">logCpuUsage</a></strong>(int&nbsp;frequencyMs,
int&nbsp;thresholdPercent)</code>
<div class="block">Enable logging of CPU usage.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#logThreadInfo(boolean)">logThreadInfo</a></strong>(boolean&nbsp;logAll)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#run()">run</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setBusyThreshold(int)">setBusyThreshold</a></strong>(int&nbsp;percent)</code>
<div class="block">Sets the busy threshold.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setDumpable(org.eclipse.jetty.util.component.Dumpable)">setDumpable</a></strong>(<a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a>&nbsp;dumpable)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setLogInterval(int)">setLogInterval</a></strong>(int&nbsp;ms)</code>
<div class="block">Sets the log interval.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setLogThreshold(int)">setLogThreshold</a></strong>(int&nbsp;percent)</code>
<div class="block">Sets the log threshold.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setScanInterval(int)">setScanInterval</a></strong>(int&nbsp;ms)</code>
<div class="block">Sets the scan interval.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setStackDepth(int)">setStackDepth</a></strong>(int&nbsp;stackDepth)</code>
<div class="block">Sets the stack depth.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/monitor/ThreadMonitor.html#setTrailLength(int)">setTrailLength</a></strong>(int&nbsp;trailLength)</code>
<div class="block">Sets the stack trace trail length.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.jetty.util.component.<a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3>
<code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">addLifeCycleListener</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#getState()">getState</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#getState(org.eclipse.jetty.util.component.LifeCycle)">getState</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#getStopTimeout()">getStopTimeout</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isFailed()">isFailed</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isRunning()">isRunning</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isStarted()">isStarted</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isStarting()">isStarting</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isStopped()">isStopped</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#isStopping()">isStopping</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">removeLifeCycleListener</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#setStopTimeout(long)">setStopTimeout</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#start()">start</a>, <a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#stop()">stop</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ThreadMonitor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ThreadMonitor</h4>
<pre>public&nbsp;ThreadMonitor()
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Instantiates a new thread monitor.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="ThreadMonitor(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ThreadMonitor</h4>
<pre>public&nbsp;ThreadMonitor(int&nbsp;intervalMs)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Instantiates a new thread monitor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>intervalMs</code> - scan interval</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="ThreadMonitor(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ThreadMonitor</h4>
<pre>public&nbsp;ThreadMonitor(int&nbsp;intervalMs,
int&nbsp;threshold)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Instantiates a new thread monitor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>intervalMs</code> - scan interval</dd><dd><code>threshold</code> - busy threshold</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="ThreadMonitor(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ThreadMonitor</h4>
<pre>public&nbsp;ThreadMonitor(int&nbsp;intervalMs,
int&nbsp;threshold,
int&nbsp;depth)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Instantiates a new thread monitor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>intervalMs</code> - scan interval</dd><dd><code>threshold</code> - busy threshold</dd><dd><code>depth</code> - stack compare depth</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="ThreadMonitor(int, int, int, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ThreadMonitor</h4>
<pre>public&nbsp;ThreadMonitor(int&nbsp;intervalMs,
int&nbsp;threshold,
int&nbsp;depth,
int&nbsp;trail)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Instantiates a new thread monitor.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>intervalMs</code> - scan interval</dd><dd><code>threshold</code> - busy threshold</dd><dd><code>depth</code> - stack compare depth</dd><dd><code>trail</code> - length of stack trail</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getScanInterval()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScanInterval</h4>
<pre>public&nbsp;int&nbsp;getScanInterval()</pre>
<div class="block">Gets the scan interval.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the scan interval</dd></dl>
</li>
</ul>
<a name="setScanInterval(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScanInterval</h4>
<pre>public&nbsp;void&nbsp;setScanInterval(int&nbsp;ms)</pre>
<div class="block">Sets the scan interval.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ms</code> - the new scan interval</dd></dl>
</li>
</ul>
<a name="getLogInterval()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogInterval</h4>
<pre>public&nbsp;int&nbsp;getLogInterval()</pre>
<div class="block">Gets the log interval.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the log interval</dd></dl>
</li>
</ul>
<a name="setLogInterval(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLogInterval</h4>
<pre>public&nbsp;void&nbsp;setLogInterval(int&nbsp;ms)</pre>
<div class="block">Sets the log interval.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ms</code> - the new log interval</dd></dl>
</li>
</ul>
<a name="getBusyThreshold()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBusyThreshold</h4>
<pre>public&nbsp;int&nbsp;getBusyThreshold()</pre>
<div class="block">Gets the busy threshold.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the busy threshold</dd></dl>
</li>
</ul>
<a name="setBusyThreshold(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBusyThreshold</h4>
<pre>public&nbsp;void&nbsp;setBusyThreshold(int&nbsp;percent)</pre>
<div class="block">Sets the busy threshold.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>percent</code> - the new busy threshold</dd></dl>
</li>
</ul>
<a name="getLogThreshold()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogThreshold</h4>
<pre>public&nbsp;int&nbsp;getLogThreshold()</pre>
<div class="block">Gets the log threshold.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the log threshold</dd></dl>
</li>
</ul>
<a name="setLogThreshold(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLogThreshold</h4>
<pre>public&nbsp;void&nbsp;setLogThreshold(int&nbsp;percent)</pre>
<div class="block">Sets the log threshold.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>percent</code> - the new log threshold</dd></dl>
</li>
</ul>
<a name="getStackDepth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStackDepth</h4>
<pre>public&nbsp;int&nbsp;getStackDepth()</pre>
<div class="block">Gets the stack depth.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the stack depth</dd></dl>
</li>
</ul>
<a name="setStackDepth(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStackDepth</h4>
<pre>public&nbsp;void&nbsp;setStackDepth(int&nbsp;stackDepth)</pre>
<div class="block">Sets the stack depth.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stackDepth</code> - the new stack depth</dd></dl>
</li>
</ul>
<a name="setTrailLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrailLength</h4>
<pre>public&nbsp;void&nbsp;setTrailLength(int&nbsp;trailLength)</pre>
<div class="block">Sets the stack trace trail length.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>trailLength</code> - the new trail length</dd></dl>
</li>
</ul>
<a name="getTrailLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTrailLength</h4>
<pre>public&nbsp;int&nbsp;getTrailLength()</pre>
<div class="block">Gets the stack trace trail length.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the trail length</dd></dl>
</li>
</ul>
<a name="logCpuUsage(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logCpuUsage</h4>
<pre>public&nbsp;void&nbsp;logCpuUsage(int&nbsp;frequencyMs,
int&nbsp;thresholdPercent)</pre>
<div class="block">Enable logging of CPU usage.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>frequencyMs</code> - the logging frequency</dd><dd><code>thresholdPercent</code> - the logging threshold</dd></dl>
</li>
</ul>
<a name="getDumpable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDumpable</h4>
<pre>public&nbsp;<a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a>&nbsp;getDumpable()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>A <a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component"><code>Dumpable</code></a> that is dumped whenever spinning threads are detected</dd></dl>
</li>
</ul>
<a name="setDumpable(org.eclipse.jetty.util.component.Dumpable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDumpable</h4>
<pre>public&nbsp;void&nbsp;setDumpable(<a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a>&nbsp;dumpable)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dumpable</code> - A <a href="../../../../org/eclipse/jetty/util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component"><code>Dumpable</code></a> that is dumped whenever spinning threads are detected</dd></dl>
</li>
</ul>
<a name="doStart()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doStart</h4>
<pre>public&nbsp;void&nbsp;doStart()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#doStart()">doStart</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></code></dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#doStart()"><code>AbstractLifeCycle.doStart()</code></a></dd></dl>
</li>
</ul>
<a name="doStop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doStop</h4>
<pre>public&nbsp;void&nbsp;doStop()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#doStop()">doStop</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></code></dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/eclipse/jetty/util/component/AbstractLifeCycle.html#doStop()"><code>AbstractLifeCycle.doStop()</code></a></dd></dl>
</li>
</ul>
<a name="getAllThreadIds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllThreadIds</h4>
<pre>protected&nbsp;long[]&nbsp;getAllThreadIds()</pre>
<div class="block">Retrieve all avaliable thread ids</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>array of thread ids</dd></dl>
</li>
</ul>
<a name="getThreadCpuTime(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getThreadCpuTime</h4>
<pre>protected&nbsp;long&nbsp;getThreadCpuTime(long&nbsp;id)</pre>
<div class="block">Retrieve the cpu time for specified thread.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - thread id</dd>
<dt><span class="strong">Returns:</span></dt><dd>cpu time of the thread</dd></dl>
</li>
</ul>
<a name="init()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>protected&nbsp;void&nbsp;init()</pre>
<div class="block">Initialize JMX objects.</div>
</li>
</ul>
<a name="run()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>run</h4>
<pre>public&nbsp;void&nbsp;run()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html?is-external=true#run()" title="class or interface in java.lang">run</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></code></dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html?is-external=true#run()" title="class or interface in java.lang"><code>Runnable.run()</code></a></dd></dl>
</li>
</ul>
<a name="logThreadInfo(boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>logThreadInfo</h4>
<pre>protected&nbsp;void&nbsp;logThreadInfo(boolean&nbsp;logAll)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ThreadMonitor.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1149868-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/eclipse/jetty/monitor/JMXMonitor.html" title="class in org.eclipse.jetty.monitor"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/monitor/ThreadMonitor.html" target="_top">Frames</a></li>
<li><a href="ThreadMonitor.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_org.eclipse.jetty.util.component.AbstractLifeCycle">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 1995-2017 <a href="http://webtide.com">Webtide</a>. All Rights Reserved.</small></p>
</body>
</html>