📄 endpointrouter.html
字号:
<TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#allowsRouting()">allowsRouting</A></B>()</CODE><BR> Returns true if the endpoint protocol can be used by the EndpointRouter. <p/>More specifically, this protocol will be used to route messages who's final destination is <b>not</b> one of the endpoint addresses available from getReachableEndpointAddresses.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#cleanupAnyEdges(java.lang.String, java.util.Vector)">cleanupAnyEdges</A></B>(java.lang.String src, java.util.Vector results)</CODE><BR> cleanup any edge peers when trying to forward an SRDI query so we are guaranteed to the best of our knowledge that the peer is a rendezvous. </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/EndpointRouter.html#ensureLocalRoute(net.jxta.endpoint.EndpointAddress)">ensureLocalRoute</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> pId)</CODE><BR> Ensure there is a local route for a given peer id if it can at all be done.</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/EndpointRouter.html#ensureLocalRoute(net.jxta.endpoint.EndpointAddress, java.lang.Object)">ensureLocalRoute</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> pId, java.lang.Object hint)</CODE><BR> Ensure there is a local route for a given peer id if it can at all be done.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#findBestReachableEndpoint(net.jxta.endpoint.EndpointAddress, java.util.List, boolean)">findBestReachableEndpoint</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> dest, java.util.List mightWork, boolean exist)</CODE><BR> Given a list of addresses, find the best reachable endpoint. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#findReachableEndpoint(net.jxta.endpoint.EndpointAddress, boolean)">findReachableEndpoint</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> destPeer, boolean exist)</CODE><BR> Read the route advertisement for a peer and find a suitable transport endpoint for sending to that peere either directly or via one of the advertised peer router</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#findReachableEndpoint(net.jxta.endpoint.EndpointAddress, boolean, java.lang.Object)">findReachableEndpoint</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> destPeer, boolean exist, java.lang.Object hint)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getAllRoutedRouteAddresses()">getAllRoutedRouteAddresses</A></B>()</CODE><BR> Get all long route destination addresses</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/impl/endpoint/router/BadRoute.html" title="class in net.jxta.impl.endpoint.router">BadRoute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getBadRoute(net.jxta.endpoint.EndpointAddress)">getBadRoute</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr)</CODE><BR> get bad route entry</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/endpoint/EndpointService.html" title="interface in net.jxta.endpoint">EndpointService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getEndpointService()">getEndpointService</A></B>()</CODE><BR> Returns the endpoint service with which this MessageTransport is registered. If it is unregistered then null will be returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getGatewayAddress(net.jxta.endpoint.EndpointAddress, boolean)">getGatewayAddress</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> dest, boolean seekRoute)</CODE><BR> Given a peer id, return an address to reach that peer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getGatewayAddress(net.jxta.endpoint.EndpointAddress, boolean, java.lang.Object)">getGatewayAddress</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> dest, boolean seekRoute, java.lang.Object hint)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getMessenger(net.jxta.endpoint.EndpointAddress, java.lang.Object)">getMessenger</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr, java.lang.Object hint)</CODE><BR> Creates an <A HREF="../../../../../net/jxta/endpoint/EndpointMessenger.html" title="interface in net.jxta.endpoint"><CODE>EndpointMessenger</CODE></A> for sending messages to the specified destination <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getMessengerPoolAllDestinations()">getMessengerPoolAllDestinations</A></B>()</CODE><BR> Get all direct route destinations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getMyLocalRoute()">getMyLocalRoute</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getPendingQueriesAllDestinations()">getPendingQueriesAllDestinations</A></B>()</CODE><BR> Get all pendingRouteQuery destinations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.ClearPendingQuery.html" title="class in net.jxta.impl.endpoint.router">EndpointRouter.ClearPendingQuery</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getPendingRouteQuery(net.jxta.endpoint.EndpointAddress)">getPendingRouteQuery</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr)</CODE><BR> get a pending route query info</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getProtocolName()">getProtocolName</A></B>()</CODE><BR> Returns a String containing the name of the protocol used by this MessageTransport. The value will match the "protocol" portion of all <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getPublicAddress()">getPublicAddress</A></B>()</CODE><BR> Returns the <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A> which will be used as the source address for all messages sent by this message sender. This is the "prefered" address to which replies may be sent. This address is not necessarily the best or only address by which the peer may be reached.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getPublicAddresses()">getPublicAddresses</A></B>()</CODE><BR> Returns an Iterator of all of the <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddresses</CODE></A> by which this MessageReceiver is reachable. The list is in order of "preference" with the most "prefered" EndpointAddress being at the begining of the list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getRoute(net.jxta.endpoint.EndpointAddress, boolean)">getRoute</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> pId, boolean seekRoute)</CODE><BR> Get the routed route, if any, for a given peer id.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/impl/endpoint/router/RouteCM.html" title="class in net.jxta.impl.endpoint.router">RouteCM</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getRouteCM()">getRouteCM</A></B>()</CODE><BR> Get the route CM cache Manager</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getRoutedRouteAllDestinations()">getRoutedRouteAllDestinations</A></B>()</CODE><BR> Get all long route destinations</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../../net/jxta/impl/endpoint/router/RouteResolver.html" title="class in net.jxta.impl.endpoint.router">RouteResolver</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/router/EndpointRouter.html#getRouteResolver()">getRouteResolver</A></B>()</CODE><BR> Get the route resolver 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/impl/endpoint/router/EndpointRouter.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></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)</CODE><BR> 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.</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/impl/endpoint/router/EndpointRouter.html#isConnectionOriented()">isConnectionOriented</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -