⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 discoveryserviceimpl.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  by the assignedID of that service, and a Service must publish its  run-time parameters in the Peer Advertisement under its assigned ID.<DD><CODE>impl</CODE> - The implementation advertisement for this  Module. It is permissible to pass null if no implementation  advertisement is available. This may happen if the  implementation was selected by explicit class name rather than  by following an implementation advertisement. Modules are not  required to support that style of loading, but if they do, then  their documentation should mention it.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - This module failed to initialize.</DL></DD></DL><HR><A NAME="flushAdvertisements(java.lang.String, int)"><!-- --></A><H3>flushAdvertisements</H3><PRE>public void <B>flushAdvertisements</B>(java.lang.String&nbsp;id,                                int&nbsp;type)                         throws java.io.IOException</PRE><DL><DD>flushs stored Advertisement(s),<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#flushAdvertisements(java.lang.String, int)">flushAdvertisements</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - Document ID, Peer ID, or PeerGroup ID                         flushs all content of type "type"<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="flushAdvertisement(net.jxta.document.Advertisement)"><!-- --></A><H3>flushAdvertisement</H3><PRE>public void <B>flushAdvertisement</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)                        throws java.io.IOException</PRE><DL><DD>flush a stored Advertisement<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#flushAdvertisement(net.jxta.document.Advertisement)">flushAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - Advertisement to remove<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement, int)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                    int&nbsp;type)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement with a default lifetime of <code>  DEFAULT_LIFETIME</code> and default expiration time for "others" of <code>DEFAULT_EXPIRATION</code>  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at a an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement, int)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - publish an adverisement within this group<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement with a default lifetime of <code>  DEFAULT_LIFETIME</code> and default expiration time for "others" of <code>DEFAULT_EXPIRATION</code>  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at a an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - publish an adverisement within this group<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement, long, long)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                    long&nbsp;lifetime,                    long&nbsp;expiration)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement that will expire after a certain time. A node that  finds this advertisement will hold it for about <i> lifetimeForOthers</i>  milliseconds, or <i>lifetime</i> whichever is smaller  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at  an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement, long, long)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>lifetime</CODE> - the amount of time this advertisement will live in      my cache in milliseconds<DD><CODE>expiration</CODE> - the amount of time this advertisement will live in      other people's caches in milliseconds.<DD><CODE>adv</CODE> - advertisement to publish<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement, int, long, long)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                    int&nbsp;type,                    long&nbsp;lifetime,                    long&nbsp;expiration)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement that will expire after a certain time. A node that  finds this advertisement will hold it for about <i> lifetimeForOthers</i>  milliseconds, or <i>lifetime</i> whichever is smaller  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement, int, long, long)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>lifetime</CODE> - the amount of time this advertisement will live in      my cache in milliseconds<DD><CODE>expiration</CODE> - the amount of time this advertisement will live in      other people's caches in milliseconds.<DD><CODE>adv</CODE> - advertisement to publish<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement, int)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          int&nbsp;type)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a lifetime of  Expiration time, or lifetime whichever is smaller<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, int)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a lifetime of  Expiration time, or lifetime whichever is smaller<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement, int, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          int&nbsp;type,                          long&nbsp;timeout)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a a expiration of <i>  lifetime</i><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, int, long)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>timeout</CODE> - the amount of time to advise other nodes to hold this      advertisement in their caches.<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          long&nbsp;timeout)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a a expiration of <i>  lifetime</i><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, long)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the amount of time to advise other nodes to hold this      advertisement in their caches.<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(java.lang.String, net.jxta.document.Advertisement, int)"><!-- --></A><H3>remotePublish</H3

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -