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

📄 routecm.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<PRE>public static final long <B>DEFAULT_EXPIRATION</B></PRE><DL><DD>Default expiration time for Route advertisements. This is the amount of time which advertisements will live in caches. After this time, the advertisement should be refreshed from the source.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.endpoint.router.RouteCM.DEFAULT_EXPIRATION">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="RouteCM()"><!-- --></A><H3>RouteCM</H3><PRE>public <B>RouteCM</B>()</PRE><DL><DD>Constructor<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="useRouteCM()"><!-- --></A><H3>useRouteCM</H3><PRE>protected boolean <B>useRouteCM</B>()</PRE><DL><DD>return routeCM usage<P><DD><DL></DL></DD></DL><HR><A NAME="disableRouteCM()"><!-- --></A><H3>disableRouteCM</H3><PRE>protected void <B>disableRouteCM</B>()</PRE><DL><DD>disable routeCM usage<P><DD><DL></DL></DD></DL><HR><A NAME="enableRouteCM()"><!-- --></A><H3>enableRouteCM</H3><PRE>protected void <B>enableRouteCM</B>()</PRE><DL><DD>disable routeCM usage<P><DD><DL></DL></DD></DL><HR><A NAME="init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement, net.jxta.impl.endpoint.router.EndpointRouter)"><!-- --></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>&nbsp;group,                 <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A>&nbsp;assignedID,                 <A HREF="../../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;impl,                 <A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html" title="class in net.jxta.impl.endpoint.router">EndpointRouter</A>&nbsp;router)          throws <A HREF="../../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>initialize CM route<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE></DL></DD></DL><HR><A NAME="startApp(java.lang.String[])"><!-- --></A><H3>startApp</H3><PRE>public int <B>startApp</B>(java.lang.String[]&nbsp;arg)</PRE><DL><DD>Make this protocol as up and running. When this method is called, all the services are already registered with the peergroup. So we do not need to delay binding any further. All the public methods, which could be called between init and startApp are defensive regarding the services possibly not being there.<P><DD><DL></DL></DD></DL><HR><A NAME="stopApp()"><!-- --></A><H3>stopApp</H3><PRE>public void <B>stopApp</B>()</PRE><DL><DD>Stop the service<P><DD><DL></DL></DD></DL><HR><A NAME="getRouteAdv(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>getRouteAdv</H3><PRE>protected java.util.Iterator <B>getRouteAdv</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;pId)</PRE><DL><DD>get route advertisements from the local discovery cache. We collect straight RouteAdvertisements as well as what can be found in PeerAdvertisements. We can find both, and there's no way to know which is most relevant, so we have to return all and let the invoker try its luck with each.<P><DD><DL><DT><B>Returns:</B><DD>Iterator of advertisements (route, peer)</DL></DD></DL><HR><A NAME="createRoute(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>createRoute</H3><PRE>protected void <B>createRoute</B>(<A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;route)</PRE><DL><DD>Create a new persisent route to the cache only if we can find set of endpoint addresses<P><DD><DL><DT><B>Parameters:</B><DD><CODE>route</CODE> - to be published</DL></DD></DL><HR><A NAME="publishRoute(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>publishRoute</H3><PRE>protected void <B>publishRoute</B>(<A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;route)</PRE><DL><DD>Publish a route advertisement to the CM<P><DD><DL><DT><B>Parameters:</B><DD><CODE>route</CODE> - advertisement to be published</DL></DD></DL><HR><A NAME="flushRoute(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>flushRoute</H3><PRE>protected void <B>flushRoute</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;addr)</PRE><DL><DD>flush route adv from CM<P><DD><DL><DT><B>Parameters:</B><DD><CODE>addr</CODE> - endpoint address</DL></DD></DL><HR><A NAME="updateRoute(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>updateRoute</H3><PRE>protected boolean <B>updateRoute</B>(<A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;route)</PRE><DL><DD>publish or update new route from the advertisement cache<P><DD><DL><DT><B>Parameters:</B><DD><CODE>route</CODE> - to be published or updated<DT><B>Returns:</B><DD>boolean  true or false if adv cache was updated</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RouteCM.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouterMessage.html" title="class in net.jxta.impl.endpoint.router"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../net/jxta/impl/endpoint/router/RouteControl.html" title="class in net.jxta.impl.endpoint.router"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RouteCM.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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