📄 monitorevent.html
字号:
<A NAME="CANCELLED_LOCALLY"><!-- --></A><H3>CANCELLED_LOCALLY</H3><PRE>public static final int <B>CANCELLED_LOCALLY</B></PRE><DL><DD>Report will not come because the registration was cancelled locally<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.CANCELLED_LOCALLY">Constant Field Values</A></DL></DL><HR><A NAME="CANCELLED_REMOTELY"><!-- --></A><H3>CANCELLED_REMOTELY</H3><PRE>public static final int <B>CANCELLED_REMOTELY</B></PRE><DL><DD>Report will not come because the registration was cancelled remotely<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.CANCELLED_REMOTELY">Constant Field Values</A></DL></DL><HR><A NAME="TIMEOUT"><!-- --></A><H3>TIMEOUT</H3><PRE>public static final int <B>TIMEOUT</B></PRE><DL><DD>Report will not come because the of a Timeout<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.TIMEOUT">Constant Field Values</A></DL></DL><HR><A NAME="REFUSED"><!-- --></A><H3>REFUSED</H3><PRE>public static final int <B>REFUSED</B></PRE><DL><DD>Report will not come because the Remote peer has refused it (for security, not supported or load reasons)<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.REFUSED">Constant Field Values</A></DL></DL><HR><A NAME="INVALID_REPORT_RATE"><!-- --></A><H3>INVALID_REPORT_RATE</H3><PRE>public static final int <B>INVALID_REPORT_RATE</B></PRE><DL><DD>Report will not come because the requested report rate is not supported/invalid<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.INVALID_REPORT_RATE">Constant Field Values</A></DL></DL><HR><A NAME="INVALID_MONITOR_FILTER"><!-- --></A><H3>INVALID_MONITOR_FILTER</H3><PRE>public static final int <B>INVALID_MONITOR_FILTER</B></PRE><DL><DD>Report will not come because the provided MonitorFilter was invalid<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.INVALID_MONITOR_FILTER">Constant Field Values</A></DL></DL><HR><A NAME="LEASE_CANCELLED"><!-- --></A><H3>LEASE_CANCELLED</H3><PRE>public static final int <B>LEASE_CANCELLED</B></PRE><DL><DD>Further Reports will not come because the lease was cancelled<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.LEASE_CANCELLED">Constant Field Values</A></DL></DL><HR><A NAME="LEASE_RENEWAL_TIMEOUT"><!-- --></A><H3>LEASE_RENEWAL_TIMEOUT</H3><PRE>public static final int <B>LEASE_RENEWAL_TIMEOUT</B></PRE><DL><DD>Further Reports will not come because the lease renewal request did not receive a response. In all likelihood the remote peer has failed (ie crashed)<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.LEASE_RENEWAL_TIMEOUT">Constant Field Values</A></DL></DL><HR><A NAME="ERROR"><!-- --></A><H3>ERROR</H3><PRE>public static final int <B>ERROR</B></PRE><DL><DD>Internal Error processing Reports, probably due to a bad Monitor Implementation<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.ERROR">Constant Field Values</A></DL></DL><HR><A NAME="PEERGROUP_DESTROYED"><!-- --></A><H3>PEERGROUP_DESTROYED</H3><PRE>public static final int <B>PEERGROUP_DESTROYED</B></PRE><DL><DD>Further Reports will not come because this PeerGroup was destroyed locally<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.meter.MonitorEvent.PEERGROUP_DESTROYED">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="MonitorEvent(net.jxta.peergroup.PeerGroupID, net.jxta.meter.MonitorReport)"><!-- --></A><H3>MonitorEvent</H3><PRE>public <B>MonitorEvent</B>(<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> peerGroupID, <A HREF="../../../net/jxta/meter/MonitorReport.html" title="class in net.jxta.meter">MonitorReport</A> monitorReport)</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="getType()"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>()</PRE><DL><DD>Get the Type of Event (one of the above constants)<P><DD><DL></DL></DD></DL><HR><A NAME="getPeerID()"><!-- --></A><H3>getPeerID</H3><PRE>public <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> <B>getPeerID</B>()</PRE><DL><DD>PeerID of reporting Peer. My PeerID if local<P><DD><DL></DL></DD></DL><HR><A NAME="getPeerGroupID()"><!-- --></A><H3>getPeerGroupID</H3><PRE>public <A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> <B>getPeerGroupID</B>()</PRE><DL><DD>PeerGroup of reported event<P><DD><DL></DL></DD></DL><HR><A NAME="getMonitorFilter()"><!-- --></A><H3>getMonitorFilter</H3><PRE>public <A HREF="../../../net/jxta/meter/MonitorFilter.html" title="class in net.jxta.meter">MonitorFilter</A> <B>getMonitorFilter</B>()</PRE><DL><DD>MonitorFilter provided when the report was requested<P><DD><DL></DL></DD></DL><HR><A NAME="getReportRate()"><!-- --></A><H3>getReportRate</H3><PRE>public long <B>getReportRate</B>()</PRE><DL><DD>Reporting rate (unless Cumulative) specified when the report was requested<P><DD><DL></DL></DD></DL><HR><A NAME="getLeaseTime()"><!-- --></A><H3>getLeaseTime</H3><PRE>public long <B>getLeaseTime</B>()</PRE><DL><DD>Most recent Lease time granted (not specified if a cumulative Report)<P><DD><DL></DL></DD></DL><HR><A NAME="getMonitorReport()"><!-- --></A><H3>getMonitorReport</H3><PRE>public <A HREF="../../../net/jxta/meter/MonitorReport.html" title="class in net.jxta.meter">MonitorReport</A> <B>getMonitorReport</B>()</PRE><DL><DD>Get the corresponding MonitorReport<P><DD><DL></DL></DD></DL><HR><A NAME="getValidMonitorFilter()"><!-- --></A><H3>getValidMonitorFilter</H3><PRE>public <A HREF="../../../net/jxta/meter/MonitorFilter.html" title="class in net.jxta.meter">MonitorFilter</A> <B>getValidMonitorFilter</B>()</PRE><DL><DD>The Validated MonitorFilter from the registration or query<P><DD><DL><DT><B>Returns:</B><DD>MonitorFilter</DL></DD></DL><HR><A NAME="createRemoteMonitorReportEvent(net.jxta.peer.PeerID, int, net.jxta.meter.MonitorReport)"><!-- --></A><H3>createRemoteMonitorReportEvent</H3><PRE>public static <A HREF="../../../net/jxta/meter/MonitorEvent.html" title="class in net.jxta.meter">MonitorEvent</A> <B>createRemoteMonitorReportEvent</B>(<A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerID, int requestId, <A HREF="../../../net/jxta/meter/MonitorReport.html" title="class in net.jxta.meter">MonitorReport</A> monitorReport)</PRE><DL><DD>Convenience factory method<P><DD><DL></DL></DD></DL><HR><A NAME="createFailureEvent(int, net.jxta.peer.PeerID, int)"><!-- --></A><H3>createFailureEvent</H3><PRE>public static <A HREF="../../../net/jxta/meter/MonitorEvent.html" title="class in net.jxta.meter">MonitorEvent</A> <B>createFailureEvent</B>(int type, <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerID, int requestId)</PRE><DL><DD>Convenience factory method<P><DD><DL></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="class-use/MonitorEvent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../net/jxta/meter/MonitorFilter.html" title="class in net.jxta.meter"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="MonitorEvent.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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -