📄 edgepeerrdvservice.html
字号:
<BR> Sends advertisement about other RendezVous to a given 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/edge/EdgePeerRdvService.html#setRendezVousManager(net.jxta.rendezvous.RendezVousManager)">setRendezVousManager</A></B>(<A HREF="../../../../../net/jxta/rendezvous/RendezVousManager.html" title="interface in net.jxta.rendezvous">RendezVousManager</A> monitor)</CODE><BR> Start the local peer as a RendezVous peer with the default manager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/rendezvous/edge/EdgePeerRdvService.html#startApp(java.lang.String[])">startApp</A></B>(java.lang.String[] arg)</CODE><BR> Supply arguments and starts this service if it hadn't started by itself. Currently this service starts by itself and does not expect arguments.</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/edge/EdgePeerRdvService.html#stopApp()">stopApp</A></B>()</CODE><BR> Ask this service to stop.</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/edge/EdgePeerRdvService.html#stopRendezVous()">stopRendezVous</A></B>()</CODE><BR> Stop the RendezVous function on the local Peer. All connected Peer are disconnected.</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/edge/EdgePeerRdvService.html#walk(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)">walk</A></B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL)</CODE><BR> Walk a message through the rendezvous peers of the network: only rendezvous peers will receive the message. </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/edge/EdgePeerRdvService.html#walk(java.util.Vector, net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)">walk</A></B>(java.util.Vector destPeerIDs, <A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL)</CODE><BR> Walk a message through the rendezvous peers of the network: only rendezvous peers will receive the message. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.impl.rendezvous.RendezVousServiceProvider"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.impl.rendezvous.<A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#isPeerInPropHeader(net.jxta.endpoint.Message, net.jxta.id.ID)">isPeerInPropHeader</A>, <A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#mkAddress(net.jxta.id.ID, java.lang.String, java.lang.String)">mkAddress</A>, <A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#mkAddress(java.lang.String, java.lang.String, java.lang.String)">mkAddress</A>, <A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#sendViaCachedMessenger(net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.Message, net.jxta.endpoint.OutgoingMessageEventListener)">sendViaCachedMessenger</A>, <A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#setRendezvousServiceMonitor(net.jxta.impl.rendezvous.rendezvousMeter.RendezvousServiceMonitor)">setRendezvousServiceMonitor</A></CODE></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="MaxTTL"><!-- --></A><H3>MaxTTL</H3><PRE>public static final int <B>MaxTTL</B></PRE><DL><DD>Description of the Field<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.rendezvous.edge.EdgePeerRdvService.MaxTTL">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="EdgePeerRdvService(net.jxta.impl.rendezvous.RendezVousServiceImpl, net.jxta.peergroup.PeerGroup, net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.protocol.ConfigParams)"><!-- --></A><H3>EdgePeerRdvService</H3><PRE>public <B>EdgePeerRdvService</B>(<A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceImpl</A> rdvService, <A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> g, <A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> advGroup, <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assignedID, <A HREF="../../../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol">ConfigParams</A> adv)</PRE><DL><DD>Constructor<P><DT><B>Parameters:</B><DD><CODE>g</CODE> - Description of Parameter</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="startApp(java.lang.String[])"><!-- --></A><H3>startApp</H3><PRE>protected int <B>startApp</B>(java.lang.String[] arg)</PRE><DL><DD>Supply arguments and starts this service if it hadn't started by itself. Currently this service starts by itself and does not expect arguments.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#startApp(java.lang.String[])">startApp</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arg</CODE> - A table of strings arguments.<DT><B>Returns:</B><DD>int status indication.</DL></DD></DL><HR><A NAME="stopApp()"><!-- --></A><H3>stopApp</H3><PRE>protected void <B>stopApp</B>()</PRE><DL><DD>Ask this service to stop.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#stopApp()">stopApp</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isRendezVous()"><!-- --></A><H3>isRendezVous</H3><PRE>public boolean <B>isRendezVous</B>()</PRE><DL><DD>tells whether this rendezvous service currently acts as a "super-node" "rendezvous", knowlege hub, influence broker, or whichever higher status applies to the implementation.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#isRendezVous()">isRendezVous</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if this rendezvous acts as a "rendezvous" per the implementation definition.</DL></DD></DL><HR><A NAME="getConnectedPeerIDs()"><!-- --></A><H3>getConnectedPeerIDs</H3><PRE>public java.util.Vector <B>getConnectedPeerIDs</B>()</PRE><DL><DD>Returns a Vector of PeerID of the peers that are currentely connected.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#getConnectedPeerIDs()">getConnectedPeerIDs</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Vector vector of peers connected to that rendezvous</DL></DD></DL><HR><A NAME="getConnectedPeers()"><!-- --></A><H3>getConnectedPeers</H3><PRE>public java.util.Enumeration <B>getConnectedPeers</B>()</PRE><DL><DD>Returns an Enumeration of PeerID of the peers that are currentely connected.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html#getConnectedPeers()">getConnectedPeers</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/impl/rendezvous/RendezVousServiceProvider.html" title="class in net.jxta.impl.rendezvous">RendezVousServiceProvider</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Enumeration enumeration of peers connected to that rendezvous</DL></DD></DL><HR><A NAME="isConnectedToRendezVous()"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -