📄 serviceresourcestatistic.html
字号:
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
<DL>
<DD>Constructor
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>serviceRef</CODE> - <DD><CODE>resourceStatisticMap</CODE> - <DD><CODE>missingServers</CODE> - <DD><CODE>collectionTimestamp</CODE> -
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE></DL>
</DL>
<HR>
<A NAME="ServiceResourceStatistic(com.bea.wli.config.Ref, java.lang.Exception)"><!-- --></A><H3>
ServiceResourceStatistic</H3>
<PRE>
public <B>ServiceResourceStatistic</B>(<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> serviceRef,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> exception)
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
<DL>
<DD>Constructor
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>serviceRef</CODE> - <DD><CODE>exception</CODE> -
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getServiceRef()"><!-- --></A><H3>
getServiceRef</H3>
<PRE>
public <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>getServiceRef</B>()</PRE>
<DL>
<DD>Gets reference of service of which statistical information is available in this object.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Service reference.</DL>
</DD>
</DL>
<HR>
<A NAME="getCollectionTimestamp()"><!-- --></A><H3>
getCollectionTimestamp</H3>
<PRE>
public long <B>getCollectionTimestamp</B>()
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></PRE>
<DL>
<DD>Gets the time the statistics were collected from the cluster. Time (actual time from Admin Server) when this statistic was collected. This method should be called after making sure that statistics are retrieved successfully. In case of statistics retrieval failure, collection time data will have no meaning and in such case this method will throw IllegalStateException.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Collection timestamp in mSec.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - If not collection timestamp is not set.</DL>
</DD>
</DL>
<HR>
<A NAME="getAllResourceStatistics()"><!-- --></A><H3>
getAllResourceStatistics</H3>
<PRE>
public <A HREF="../../../../com/bea/wli/monitoring/ResourceStatistic.html" title="class in com.bea.wli.monitoring">ResourceStatistic</A>[] <B>getAllResourceStatistics</B>()
throws <A HREF="../../../../com/bea/wli/monitoring/InvalidServiceRefException.html" title="class in com.bea.wli.monitoring">InvalidServiceRefException</A>,
<A HREF="../../../../com/bea/wli/monitoring/MonitoringNotEnabledException.html" title="class in com.bea.wli.monitoring">MonitoringNotEnabledException</A>,
<A HREF="../../../../com/bea/wli/monitoring/MonitoringException.html" title="class in com.bea.wli.monitoring">MonitoringException</A></PRE>
<DL>
<DD>Gets statistics for all resources.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Statistics for all resources of requested types. If statistics for one or more type of resources (that were specified in the operation which returned this object) are not present in the returned statistics, it means this service does not have any resources of those types.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/InvalidServiceRefException.html" title="class in com.bea.wli.monitoring">InvalidServiceRefException</A></CODE> - If service reference is invalid or service is deleted.
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/MonitoringNotEnabledException.html" title="class in com.bea.wli.monitoring">MonitoringNotEnabledException</A></CODE> - If statistics not found.
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/MonitoringException.html" title="class in com.bea.wli.monitoring">MonitoringException</A></CODE> - If operation fails.</DL>
</DD>
</DL>
<HR>
<A NAME="getResourceStatisticsByType(com.bea.wli.monitoring.ResourceType)"><!-- --></A><H3>
getResourceStatisticsByType</H3>
<PRE>
public <A HREF="../../../../com/bea/wli/monitoring/ResourceStatistic.html" title="class in com.bea.wli.monitoring">ResourceStatistic</A>[] <B>getResourceStatisticsByType</B>(<A HREF="../../../../com/bea/wli/monitoring/ResourceType.html" title="enum in com.bea.wli.monitoring">ResourceType</A> type)
throws <A HREF="../../../../com/bea/wli/monitoring/InvalidServiceRefException.html" title="class in com.bea.wli.monitoring">InvalidServiceRefException</A>,
<A HREF="../../../../com/bea/wli/monitoring/MonitoringNotEnabledException.html" title="class in com.bea.wli.monitoring">MonitoringNotEnabledException</A>,
<A HREF="../../../../com/bea/wli/monitoring/MonitoringException.html" title="class in com.bea.wli.monitoring">MonitoringException</A></PRE>
<DL>
<DD>Gets statistics for all resources of specified type.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - Resource type.
<DT><B>Returns:</B><DD>Statistics for all resources of specified type. Null will be returned in following two situations: 1. This service doen not have any resource of the specified type. 2. Statistics for specified type were not requested in the operation that returned this object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/InvalidServiceRefException.html" title="class in com.bea.wli.monitoring">InvalidServiceRefException</A></CODE> - If service reference is invalid or service is deleted.
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/MonitoringNotEnabledException.html" title="class in com.bea.wli.monitoring">MonitoringNotEnabledException</A></CODE> - If statistics not found.
<DD><CODE><A HREF="../../../../com/bea/wli/monitoring/MonitoringException.html" title="class in com.bea.wli.monitoring">MonitoringException</A></CODE> - If operation fails.</DL>
</DD>
</DL>
<HR>
<A NAME="getMissingServers()"><!-- --></A><H3>
getMissingServers</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>getMissingServers</B>()
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></PRE>
<DL>
<DD>Returns array of missing servers. This method should be called after making sure that statistics are retrieved successfully. In case of statistics retrieval failure, missing server data will have no meaning and in such case this method will throw IllegalStateException.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Array of missing servers. Returns empty array if no server is missing and statistics retrieval was successful.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - If not collection timestamp is not set.</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=2 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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/bea/wli/monitoring/ServiceDomainMBean.html" title="interface in com.bea.wli.monitoring"><B>PREV CLASS</B></A>
<A HREF="../../../../com/bea/wli/monitoring/StatisticType.html" title="enum in com.bea.wli.monitoring"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/bea/wli/monitoring/ServiceResourceStatistic.html" target="_top"><B>FRAMES</B></A>
<A HREF="ServiceResourceStatistic.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <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>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -