📄 routeresolver.html
字号:
boolean all)</CODE><BR> </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/endpoint/router/RouteResolver.html#pushSrdi(java.lang.String, net.jxta.peer.PeerID)">pushSrdi</A></B>(java.lang.String peer, <A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> id)</CODE><BR> </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/endpoint/router/RouteResolver.html#removeSrdi(java.lang.String, net.jxta.peer.PeerID)">removeSrdi</A></B>(java.lang.String peer, <A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> id)</CODE><BR> remove a SRDI cache entry</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/endpoint/router/RouteResolver.html#removeSrdiIndex(net.jxta.peer.PeerID)">removeSrdiIndex</A></B>(<A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> pid)</CODE><BR> remove SRDI index</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/RouteResolver.html#startApp(java.lang.String[])">startApp</A></B>(java.lang.String[] arg)</CODE><BR> Make this protocol as up and running. </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/endpoint/router/RouteResolver.html#stopApp()">stopApp</A></B>()</CODE><BR> closes this ResolverProtocol. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/RouteResolver.html#useRouteResolver()">useRouteResolver</A></B>()</CODE><BR> return routeResolver usage</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="routerSName"><!-- --></A><H3>routerSName</H3><PRE>public final java.lang.String <B>routerSName</B></PRE><DL><DD>Router Service Name<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.endpoint.router.RouteResolver.routerSName">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="RouteResolver()"><!-- --></A><H3>RouteResolver</H3><PRE><B>RouteResolver</B>()</PRE><DL><DD>Default 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="useRouteResolver()"><!-- --></A><H3>useRouteResolver</H3><PRE>protected boolean <B>useRouteResolver</B>()</PRE><DL><DD>return routeResolver usage<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="disableRouteResolver()"><!-- --></A><H3>disableRouteResolver</H3><PRE>protected void <B>disableRouteResolver</B>()</PRE><DL><DD>disable routeResolver usage<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="enableRouteResolver()"><!-- --></A><H3>enableRouteResolver</H3><PRE>protected void <B>enableRouteResolver</B>()</PRE><DL><DD>enable routeResolver usage<P><DD><DL></DL></DD><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> group, <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, <A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html" title="class in net.jxta.impl.endpoint.router">EndpointRouter</A> router) throws <A HREF="../../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>initialize routeResolver<P><DD><DL></DL></DD><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[] 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><DD><DL></DL></DD></DL><HR><A NAME="stopApp()"><!-- --></A><H3>stopApp</H3><PRE>public void <B>stopApp</B>()</PRE><DL><DD>closes this ResolverProtocol. Carefull that stopApp() could in theory be called before startApp().<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="findRoute(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>findRoute</H3><PRE>protected void <B>findRoute</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> peer)</PRE><DL><DD>issue a new route discovery resolver request<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processResponse(net.jxta.protocol.ResolverResponseMsg)"><!-- --></A><H3>processResponse</H3><PRE>public void <B>processResponse</B>(<A HREF="../../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></B></DD><DD>Called when messages are received by the ResolverService it calls back this method to deal with received responses<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/resolver/QueryHandler.html#processResponse(net.jxta.protocol.ResolverResponseMsg)">processResponse</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>response</CODE> - ResolverQueryMsg reponse</DL></DD></DL><HR><A NAME="processQuery(net.jxta.protocol.ResolverQueryMsg)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -