📄 peerview.html
字号:
<DT><B>Returns:</B><DD>A cloned SortedSet of PeerViewElements. <p> Note that a peer is not present in its own PeerView.</DL></DD></DL><HR><A NAME="getSelf()"><!-- --></A><H3>getSelf</H3><PRE>public <A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> <B>getSelf</B>()</PRE><DL><DD>Get the local peer.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the local PeerViewElement</DL></DD></DL><HR><A NAME="updateStatus(long)"><!-- --></A><H3>updateStatus</H3><PRE>protected void <B>updateStatus</B>(long delay)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="doUpdateStatus()"><!-- --></A><H3>doUpdateStatus</H3><PRE>protected void <B>doUpdateStatus</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>processIncomingMessage</H3><PRE>public void <B>processIncomingMessage</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> srcAddr, <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> dstAddr)</PRE><DL><DD>Invoked by the Endpoint listener. NOTE: srcAddr and dstAddr MUST not be used: this method is also invoked from the WirePipe.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/EndpointListener.html#processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)">processIncomingMessage</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - Incoming message<DD><CODE>srcAddr</CODE> - Endpoint Address of the source of the message<DD><CODE>dstAddr</CODE> - Endpoint Address of the destination of the message</DL></DD></DL><HR><A NAME="notifyFailure(net.jxta.impl.rendezvous.rpv.PeerViewElement, boolean)"><!-- --></A><H3>notifyFailure</H3><PRE>public void <B>notifyFailure</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> pve, boolean propagate)</PRE><DL><DD>Invoked by a PeerViewElement when a rendezvous peer becomes unreachable.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="notifyFailure(net.jxta.id.ID)"><!-- --></A><H3>notifyFailure</H3><PRE>public void <B>notifyFailure</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> pid)</PRE><DL><DD>Invoked by anyone in order to inform the PeerView of a failure of one of its rendezvous peer. FIXME: jice@jxta.org Is not the view's iterator is just as sensitive to concurrent modification that the real thing ? Then getView() does not help. Since this routine should probably not be synchronized, we should probably take a snapshot of the set.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPeerViewElement(net.jxta.peer.PeerID)"><!-- --></A><H3>getPeerViewElement</H3><PRE>public <A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> <B>getPeerViewElement</B>(<A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> pid)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="kick()"><!-- --></A><H3>kick</H3><PRE>public void <B>kick</B>()</PRE><DL><DD>Invoked by the Timer thread to cause each PeerView to initiate a Peer Advertisement exchange. This method also prunes the view of peers that have been consistently inaccessible. FIXME: jice@jxta.org - we get the view size without being synchronized.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addListener(net.jxta.impl.rendezvous.rpv.PeerViewListener)"><!-- --></A><H3>addListener</H3><PRE>public void <B>addListener</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewListener.html" title="interface in net.jxta.impl.rendezvous.rpv">PeerViewListener</A> listener)</PRE><DL><DD>Add a listener for PeerViewEvent<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - An PeerViewListener to process the event.</DL></DD></DL><HR><A NAME="removeListener(net.jxta.impl.rendezvous.rpv.PeerViewListener)"><!-- --></A><H3>removeListener</H3><PRE>public boolean <B>removeListener</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewListener.html" title="interface in net.jxta.impl.rendezvous.rpv">PeerViewListener</A> listener)</PRE><DL><DD>Removes a PeerViewEvent Listener previously added with addListener.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the PeerViewListener listener remove<DT><B>Returns:</B><DD>whether successful or not</DL></DD></DL><HR><A NAME="sendMessageInGroup(net.jxta.pipe.OutputPipe, net.jxta.endpoint.Message)"><!-- --></A><H3>sendMessageInGroup</H3><PRE>protected void <B>sendMessageInGroup</B>(<A HREF="../../../../../net/jxta/pipe/OutputPipe.html" title="interface in net.jxta.pipe">OutputPipe</A> op, <A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUpPeer()"><!-- --></A><H3>getUpPeer</H3><PRE>public <A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> <B>getUpPeer</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDownPeer()"><!-- --></A><H3>getDownPeer</H3><PRE>public <A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> <B>getDownPeer</B>()</PRE><DL><DD><DL></DL></DD><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/PeerView.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/impl/rendezvous/rpv/PeerView.UpdateStatusTask.html" title="class in net.jxta.impl.rendezvous.rpv"><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="PeerView.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: <A HREF="#nested_class_summary">NESTED</A> | <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 + -