stats.html
来自「测试工具jmeter可用来进行性能测试」· HTML 代码 · 共 527 行 · 第 1/2 页
HTML
527 行
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="DEAD"><!-- --></A><H3>
DEAD</H3>
<PRE>
public static final int <B>DEAD</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.DEAD">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ACTIVE"><!-- --></A><H3>
ACTIVE</H3>
<PRE>
public static final int <B>ACTIVE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.ACTIVE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="WARNING"><!-- --></A><H3>
WARNING</H3>
<PRE>
public static final int <B>WARNING</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.WARNING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="HEALTHY"><!-- --></A><H3>
HEALTHY</H3>
<PRE>
public static final int <B>HEALTHY</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.HEALTHY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DEFAULT_MEMORY_FACTOR"><!-- --></A><H3>
DEFAULT_MEMORY_FACTOR</H3>
<PRE>
public static final int <B>DEFAULT_MEMORY_FACTOR</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.DEFAULT_MEMORY_FACTOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DEFAULT_THREAD_FACTOR"><!-- --></A><H3>
DEFAULT_THREAD_FACTOR</H3>
<PRE>
public static final int <B>DEFAULT_THREAD_FACTOR</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.DEFAULT_THREAD_FACTOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="HEALTHY_PER"><!-- --></A><H3>
HEALTHY_PER</H3>
<PRE>
public static final double <B>HEALTHY_PER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.HEALTHY_PER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ACTIVE_PER"><!-- --></A><H3>
ACTIVE_PER</H3>
<PRE>
public static final double <B>ACTIVE_PER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.ACTIVE_PER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="WARNING_PER"><!-- --></A><H3>
WARNING_PER</H3>
<PRE>
public static final double <B>WARNING_PER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.jmeter.monitor.util.Stats.WARNING_PER">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Stats()"><!-- --></A><H3>
Stats</H3>
<PRE>
public <B>Stats</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="calculateLoad(org.apache.jmeter.monitor.model.Status)"><!-- --></A><H3>
calculateLoad</H3>
<PRE>
public static int <B>calculateLoad</B>(<A HREF="../../../../../org/apache/jmeter/monitor/model/Status.html" title="interface in org.apache.jmeter.monitor.model">Status</A> stat)</PRE>
<DL>
<DD>The method is responsible for taking a status object and calculating an
int value from 1 to 100. We use a combination of free memory and free
threads. The current factor is 50/50.
<p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>stat</CODE> -
<DT><B>Returns:</B><DD>calculated load value</DL>
</DD>
</DL>
<HR>
<A NAME="calculateStatus(org.apache.jmeter.monitor.model.Status)"><!-- --></A><H3>
calculateStatus</H3>
<PRE>
public static int <B>calculateStatus</B>(<A HREF="../../../../../org/apache/jmeter/monitor/model/Status.html" title="interface in org.apache.jmeter.monitor.model">Status</A> stat)</PRE>
<DL>
<DD>Method should calculate if the server is: dead, active, warning or
healthy. We do this by looking at the current busy threads.
<ol>
<li> free > spare is healthy
<li> free < spare is active
<li> busy threads > 75% is warning
<li> none of the above is dead
</ol>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>stat</CODE> -
<DT><B>Returns:</B><DD>integer representing the status</DL>
</DD>
</DL>
<HR>
<A NAME="calculateMemoryLoad(org.apache.jmeter.monitor.model.Status)"><!-- --></A><H3>
calculateMemoryLoad</H3>
<PRE>
public static int <B>calculateMemoryLoad</B>(<A HREF="../../../../../org/apache/jmeter/monitor/model/Status.html" title="interface in org.apache.jmeter.monitor.model">Status</A> stat)</PRE>
<DL>
<DD>Method will calculate the memory load: used / max = load. The load value
is an integer between 1 and 100. It is the percent memory used. Changed
this to be more like other system monitors. Peter Lin 2-11-05
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>stat</CODE> -
<DT><B>Returns:</B><DD>memory load</DL>
</DD>
</DL>
<HR>
<A NAME="calculateThreadLoad(org.apache.jmeter.monitor.model.Status)"><!-- --></A><H3>
calculateThreadLoad</H3>
<PRE>
public static int <B>calculateThreadLoad</B>(<A HREF="../../../../../org/apache/jmeter/monitor/model/Status.html" title="interface in org.apache.jmeter.monitor.model">Status</A> stat)</PRE>
<DL>
<DD>Method will calculate the thread load: busy / max = load. The value is an
integer between 1 and 100. It is the percent busy.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>stat</CODE> -
<DT><B>Returns:</B><DD>thread load</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Apache JMeter</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../org/apache/jmeter/monitor/util/MemoryBenchmark.html" title="class in org.apache.jmeter.monitor.util"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Stats.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 1998-2008 Apache Software Foundation. All Rights Reserved.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?