📄 rendezvousserviceimpl.html
字号:
Walk a message through the rendezvous peers of the network: only rendezvous peers will receive the message. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</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/RendezVousServiceImpl.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> <p/>Walk a message through the rendezvous peers of the network: only rendezvous peers will receive the message. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</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, 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="PROP_RDV_WATCHDOG"><!-- --></A><H3>PROP_RDV_WATCHDOG</H3><PRE>public static final java.lang.String <B>PROP_RDV_WATCHDOG</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.rendezvous.RendezVousServiceImpl.PROP_RDV_WATCHDOG">Constant Field Values</A></DL></DL><HR><A NAME="configIsRendezvous"><!-- --></A><H3>configIsRendezvous</H3><PRE>protected boolean <B>configIsRendezvous</B></PRE><DL><DL></DL></DL><HR><A NAME="autoRendezvous"><!-- --></A><H3>autoRendezvous</H3><PRE>protected boolean <B>autoRendezvous</B></PRE><DL><DL></DL></DL><HR><A NAME="applisteners"><!-- --></A><H3>applisteners</H3><PRE>protected java.util.Vector <B>applisteners</B></PRE><DL><DL></DL></DL><HR><A NAME="listeners"><!-- --></A><H3>listeners</H3><PRE>protected java.util.Hashtable <B>listeners</B></PRE><DL><DL></DL></DL><HR><A NAME="monitor"><!-- --></A><H3>monitor</H3><PRE>protected <A HREF="../../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A> <B>monitor</B></PRE><DL><DL></DL></DL><HR><A NAME="MaxNbOfStoredIds"><!-- --></A><H3>MaxNbOfStoredIds</H3><PRE>protected static final int <B>MaxNbOfStoredIds</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.rendezvous.RendezVousServiceImpl.MaxNbOfStoredIds">Constant Field Values</A></DL></DL><HR><A NAME="msgIds"><!-- --></A><H3>msgIds</H3><PRE>protected java.util.Vector <B>msgIds</B></PRE><DL><DL></DL></DL><HR><A NAME="IncarnationTag"><!-- --></A><H3>IncarnationTag</H3><PRE>public static final java.lang.String <B>IncarnationTag</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.rendezvous.RendezVousServiceImpl.IncarnationTag">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="RendezVousServiceImpl()"><!-- --></A><H3>RendezVousServiceImpl</H3><PRE>public <B>RendezVousServiceImpl</B>()</PRE><DL><DD>Constructor for the RendezVousServiceImpl object<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="getInterface()"><!-- --></A><H3>getInterface</H3><PRE>public <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>getInterface</B>()</PRE><DL><DD>Service objects are not manipulated directly to protect usage of the service. A Service interface is returned to access the service methods.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getInterface()">getInterface</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Service public interface of the service</DL></DD></DL><HR><A NAME="getImplAdvertisement()"><!-- --></A><H3>getImplAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> <B>getImplAdvertisement</B>()</PRE><DL><DD>Returns the advertisment for this service.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Advertisement the advertisement.</DL></DD></DL><HR><A NAME="init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> g, <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assignedID, <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> impl)</PRE><DL><DD>Initialize the module, passing it its peer group and advertisement. <p/>Note: when subclassing one of the existing PeerGroup implementations (which implement Module), it may not be recommended to overload the init method. See the documentation of the PeerGroup class being subclassed. Note: it is permissible to pass null as the impl parameter when this instance is not being loaded via the module framework.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The PeerGroup from which this Module can obtain services. If this module is a service, this is also the PeerGroup of which this module is a service.<DD><CODE>assignedID</CODE> - Identity of Module within group. modules can use it as a the root of their namespace to create names that are unique within the group but predictible by the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -