?? rendezvousservice.html
字號(hào):
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/rendezvous/RendezVousService.html#propagateInGroup(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int, java.lang.String)">propagateInGroup</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, java.lang.String prunePeer)</CODE><BR> <B>Deprecated.</B> <I>use <A HREF="../../../net/jxta/rendezvous/RendezVousService.html#propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)"><CODE>propagate(Message,String,String,int)</CODE></A></I></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/rendezvous/RendezVousService.html#propagateToNeighbors(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int, java.lang.String)">propagateToNeighbors</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, java.lang.String prunePeer)</CODE><BR> <B>Deprecated.</B> <I>use <A HREF="../../../net/jxta/rendezvous/RendezVousService.html#propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)"><CODE>propagate(Message,String,String,int)</CODE></A></I></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/rendezvous/RendezVousService.html#removeListener(net.jxta.rendezvous.RendezvousListener)">removeListener</A></B>(<A HREF="../../../net/jxta/rendezvous/RendezvousListener.html" title="interface in net.jxta.rendezvous">RendezvousListener</A> listener)</CODE><BR> Removes a Listener previously added with addListener.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/rendezvous/RendezVousService.html#removePropagateListener(java.lang.String, net.jxta.endpoint.EndpointListener)">removePropagateListener</A></B>(java.lang.String name, <A HREF="../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Removes a Listener previously added with addPropagateListener.</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/rendezvous/RendezVousService.html#sendRendezVousAdv(net.jxta.protocol.PeerAdvertisement, net.jxta.protocol.PeerAdvertisement)">sendRendezVousAdv</A></B>(<A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> destPeer, <A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> rendezVous)</CODE><BR> <B>Deprecated.</B> <I>Should never have been public</I></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/rendezvous/RendezVousService.html#setAutoStart(boolean)">setAutoStart</A></B>(boolean auto)</CODE><BR> Enable or disable the automatic switching between an Edge Peer and a Rendezvous Peer.</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/rendezvous/RendezVousService.html#setAutoStart(boolean, long)">setAutoStart</A></B>(boolean auto, long period)</CODE><BR> Enable or disable the automatic switching between an Edge Peer and a Rendezvous Peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/rendezvous/RendezVousService.html#setMonitor(net.jxta.rendezvous.RendezVousMonitor)">setMonitor</A></B>(<A HREF="../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A> monitor)</CODE><BR> <B>Deprecated.</B> <I>Register a RendezvousListener instead.</I></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/rendezvous/RendezVousService.html#startRendezVous()">startRendezVous</A></B>()</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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/rendezvous/RendezVousService.html#startRendezVous(net.jxta.rendezvous.RendezVousManager)">startRendezVous</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. </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/rendezvous/RendezVousService.html#stopRendezVous()">stopRendezVous</A></B>()</CODE><BR> Stop the RendezVous function on the local 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/rendezvous/RendezVousService.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 ttl)</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/rendezvous/RendezVousService.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 ttl)</CODE><BR> <p/>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.service.Service"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.service.<A HREF="../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A>, <A HREF="../../../net/jxta/service/Service.html#getInterface()">getInterface</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.platform.Module"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.platform.<A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../net/jxta/platform/Module.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A>, <A HREF="../../../net/jxta/platform/Module.html#startApp(java.lang.String[])">startApp</A>, <A HREF="../../../net/jxta/platform/Module.html#stopApp()">stopApp</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="connectToRendezVous(net.jxta.protocol.PeerAdvertisement)"><!-- --></A><H3>connectToRendezVous</H3><PRE>public void <B>connectToRendezVous</B>(<A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> adv) throws java.io.IOException</PRE><DL><DD>Add a peer as a new RendezVousService point. <p/>If/When the RendezVousService accepts the connection, the RendezVous service will invoke the RendezVousMonitor.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - the advertisement of the RendezVousService peer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - when the RendezVousService peer is not reachable</DL></DD></DL><HR><A NAME="connectToRendezVous(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>connectToRendezVous</H3><PRE>public void <B>connectToRendezVous</B>(<A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr) throws java.io.IOException</PRE><DL><DD>Add a peer as a new RendezVousService point. <p/>If/When the RendezVousService accepts the connection, the RendezVous service will invoke the RendezVousMonitor.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>addr</CODE> - EndpointAddress of the rendezvous peer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - when the RendezVousService peer is not reachable</DL></DD></DL><HR><A NAME="disconnectFromRendezVous(net.jxta.id.ID)"><!-- --></A><H3>disconnectFromRendezVous</H3><PRE>public void <B>disconnectFromRendezVous</B>(<A HREF="../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> peerID)</PRE><DL><DD>Remove a RendezVousService point.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerID</CODE> - the PeerId of the RendezVous to disconnect from.</DL></DD></DL><HR><A NAME="setMonitor(net.jxta.rendezvous.RendezVousMonitor)"><!-- --></A><H3>setMonitor</H3><PRE>public <A HREF="../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A> <B>setMonitor</B>(<A HREF="../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A> monitor)</PRE><DL><DD><B>Deprecated.</B> <I>Register a RendezvousListener instead.</I><P><DD>Register a notification monitor that is called each time a RendezVous peer is not reachable anymore.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>monitor</CODE> - a monitor that is called each time a RendezVous peer is is not reachable anymore.<DT><B>Returns:</B><DD>RendezVousMonitor returns, if any, the current RendezVousMonitor</DL></DD></DL><HR><A NAME="getConnectedRendezVous()"><!-- --></A><H3>getConnectedRendezVous</H3><PRE>public java.util.Enumeration <B>getConnectedRendezVous</B>()</PRE><DL><DD>Returns an Enumeration of the PeerID all the RendezVous on which this Peer is currentely connected.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Enumeration enumeration of RendezVous</DL></DD></DL><HR><A NAME="getDisconnectedRendezVous()"><!-- --></A><H3>getDisconnectedRendezVous</H3><PRE>public java.util.Enumeration <B>getDisconnectedRendezVous</B>()</PRE><DL><DD>Returns an Enumeration of the PeerID all the RendezVous on which this Peer failed to connect to.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Enumeration enumeration of RendezVous</DL></DD></DL><HR><A NAME="startRendezVous(net.jxta.rendezvous.RendezVousManager)"><!-- --></A><H3>startRendezVous</H3><PRE>public void <B>startRendezVous</B>(<A HREF="../../../net/jxta/rendezvous/RendezVousManager.html" title="interface in net.jxta.rendezvous">RendezVousManager</A> monitor) throws java.io.IOException</PRE><DL><DD>Start the local peer as a RendezVous peer. The caller must provide a monitor to an authorization manager.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>monitor</CODE> - is the RendezVousManager that will be invoked each time a new Peer request to be connected.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - when a monitor has already been connected</DL></DD></DL>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -