📄 peerview.html
字号:
<CODE> java.util.SortedSet</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#getView()">getView</A></B>()</CODE><BR> Get a copy of the PeerView for this group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#kick()">kick</A></B>()</CODE><BR> Invoked by the Timer thread to cause each PeerView to initiate a Peer Advertisement exchange. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#notifyFailure(net.jxta.id.ID)">notifyFailure</A></B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> pid)</CODE><BR> Invoked by anyone in order to inform the PeerView of a failure of one of its rendezvous peer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#notifyFailure(net.jxta.impl.rendezvous.rpv.PeerViewElement, boolean)">notifyFailure</A></B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> pve, boolean propagate)</CODE><BR> Invoked by a PeerViewElement when a rendezvous peer becomes unreachable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)">processIncomingMessage</A></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)</CODE><BR> Invoked by the Endpoint listener. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#removeListener(net.jxta.impl.rendezvous.rpv.PeerViewListener)">removeListener</A></B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewListener.html" title="interface in net.jxta.impl.rendezvous.rpv">PeerViewListener</A> listener)</CODE><BR> Removes a PeerViewEvent Listener previously added with addListener.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#removePendingPve(net.jxta.impl.rendezvous.rpv.PeerViewElement)">removePendingPve</A></B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> pve)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#removeTask(java.util.TimerTask)">removeTask</A></B>(java.util.TimerTask task)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#sendMessageInGroup(net.jxta.pipe.OutputPipe, net.jxta.endpoint.Message)">sendMessageInGroup</A></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)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerView.html#updateStatus(long)">updateStatus</A></B>(long delay)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="PROPERTIES_FILENAME"><!-- --></A><H3>PROPERTIES_FILENAME</H3><PRE>public static final java.lang.String <B>PROPERTIES_FILENAME</B></PRE><DL><DD>The PeerView uses a file in the classpath directory, named jxta.properties in order to allow configuration. PROPERTY_FILENAME is the name of the configuration file used by the PeerView.<P><DL></DL></DL><HR><A NAME="SEEDINGRDV_CONN_DELAY_PROPERTY"><!-- --></A><H3>SEEDINGRDV_CONN_DELAY_PROPERTY</H3><PRE>public static final java.lang.String <B>SEEDINGRDV_CONN_DELAY_PROPERTY</B></PRE><DL><DD>SeedingRdvConnDelay property The delay in second before the peer tries to contact seeding Rendezvous peers. If not specified, default is 0 (zero).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.rendezvous.rpv.PeerView.SEEDINGRDV_CONN_DELAY_PROPERTY">Constant Field Values</A></DL></DL><HR><A NAME="PROPAGATE_AVERAGE_RESPONSES_PROPERTY"><!-- --></A><H3>PROPAGATE_AVERAGE_RESPONSES_PROPERTY</H3><PRE>public static final java.lang.String <B>PROPAGATE_AVERAGE_RESPONSES_PROPERTY</B></PRE><DL><DD>PropagateAverageResponses property The average number of responses a peer should get when probing for rendezvous peers on the propagate pipe.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.rendezvous.rpv.PeerView.PROPAGATE_AVERAGE_RESPONSES_PROPERTY">Constant Field Values</A></DL></DL><HR><A NAME="config"><!-- --></A><H3>config</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/rendezvous/conf/StaticRdvConf.html" title="class in net.jxta.impl.rendezvous.conf">StaticRdvConf</A> <B>config</B></PRE><DL><DD>The configurator in use.<P><DL></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="PeerView(net.jxta.peergroup.PeerGroup, net.jxta.peergroup.PeerGroup, java.lang.String, boolean, boolean)"><!-- --></A><H3>PeerView</H3><PRE>public <B>PeerView</B>(<A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, <A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> advertisingGroup, java.lang.String serviceName, boolean isRendezvous, boolean useOnlySeeds)</PRE><DL><DD>Get an instance of PeerView for the specified PeerGroup and Service. Create instances as necessary.<P></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="removeTask(java.util.TimerTask)"><!-- --></A><H3>removeTask</H3><PRE>protected void <B>removeTask</B>(java.util.TimerTask task)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPendingPve(net.jxta.impl.rendezvous.rpv.PeerViewElement)"><!-- --></A><H3>getPendingPve</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> <B>getPendingPve</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> pve)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removePendingPve(net.jxta.impl.rendezvous.rpv.PeerViewElement)"><!-- --></A><H3>removePendingPve</H3><PRE>protected void <B>removePendingPve</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.html" title="class in net.jxta.impl.rendezvous.rpv">PeerViewElement</A> pve)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getKickInterval()"><!-- --></A><H3>getKickInterval</H3><PRE>public long <B>getKickInterval</B>()</PRE><DL><DD>Return the configured kick interval. The kick interval is defined as the interval between successive advertisement exchanges.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the currently configured kick interval.</DL></DD></DL><HR><A NAME="getView()"><!-- --></A><H3>getView</H3><PRE>public java.util.SortedSet <B>getView</B>()</PRE><DL><DD>Get a copy of the PeerView for this group.<P><DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -