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

📄 relayclient.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#removeActiveRelay(net.jxta.endpoint.EndpointAddress, net.jxta.protocol.RouteAdvertisement)">removeActiveRelay</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;address,                  <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;relayRoute)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notify of a relay connection removal</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#removeActiveRelayListener(java.lang.Object)">removeActiveRelayListener</A></B>(java.lang.Object&nbsp;service)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unregister an active Relay to the endpoint. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#run()">run</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p/>Logic for the relay client :       Pick a relay server to try    try getting a messenger to relay server, if can not get messenger, start over    use the messenger to send a connect message    wait for a response, if there is no response or a disconnect response, start over    while still connected :              renew the lease as needed and keep the messenger connected         </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#startClient()">startClient</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#stopClient()">stopClient</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayClient.html#transportControl(java.lang.Object, java.lang.Object)">transportControl</A></B>(java.lang.Object&nbsp;operation,                 java.lang.Object&nbsp;Value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pass a transport control object to a message transport</TD></TR></TABLE>&nbsp;<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>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.endpoint.MessageTransport"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.endpoint.<A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#hashCode()">hashCode</A></CODE></TD></TR></TABLE>&nbsp;<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="currentServer"><!-- --></A><H3>currentServer</H3><PRE>protected net.jxta.impl.endpoint.relay.RelayClient.RelayServerConnection <B>currentServer</B></PRE><DL><DL></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="RelayClient(net.jxta.impl.endpoint.relay.RelayTransport, java.lang.String, net.jxta.endpoint.EndpointAddress[], int, long, long)"><!-- --></A><H3>RelayClient</H3><PRE>public <B>RelayClient</B>(<A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayTransport.html" title="class in net.jxta.impl.endpoint.relay">RelayTransport</A>&nbsp;transport,                   java.lang.String&nbsp;serviceName,                   <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>[]&nbsp;seedRelays,                   int&nbsp;maxServers,                   long&nbsp;messengerPollInterval,                   long&nbsp;leaseLengthToRequest)</PRE><DL></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="startClient()"><!-- --></A><H3>startClient</H3><PRE>public void <B>startClient</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="stopClient()"><!-- --></A><H3>stopClient</H3><PRE>public void <B>stopClient</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPublicAddresses()"><!-- --></A><H3>getPublicAddresses</H3><PRE>public java.util.Iterator <B>getPublicAddresses</B>()</PRE><DL><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageReceiver.html#getPublicAddresses()">getPublicAddresses</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageReceiver.html" title="interface in net.jxta.endpoint">MessageReceiver</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an Iterator of EndpointAddresses.</DL></DD></DL><HR><A NAME="getProtocolName()"><!-- --></A><H3>getProtocolName</H3><PRE>public java.lang.String <B>getProtocolName</B>()</PRE><DL><DD>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>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#getProtocolName()">getProtocolName</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String containing the name of the protocol used by this EndpointProtocol</DL></DD></DL><HR><A NAME="getEndpointService()"><!-- --></A><H3>getEndpointService</H3><PRE>public <A HREF="../../../../../net/jxta/endpoint/EndpointService.html" title="interface in net.jxta.endpoint">EndpointService</A> <B>getEndpointService</B>()</PRE><DL><DD>Returns the endpoint service with which this MessageTransport is  registered. If it is unregistered then null will be returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#getEndpointService()">getEndpointService</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the EndpointService with which this MessageTransport is  registered.</DL></DD></DL><HR><A NAME="transportControl(java.lang.Object, java.lang.Object)"><!-- --></A><H3>transportControl</H3><PRE>public java.lang.Object <B>transportControl</B>(java.lang.Object&nbsp;operation,                                         java.lang.Object&nbsp;Value)</PRE><DL><DD>Pass a transport control object to a message transport<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#transportControl(java.lang.Object, java.lang.Object)">transportControl</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>returned object</DL></DD></DL><HR><A NAME="propertyChange(java.beans.PropertyChangeEvent)"><!-- --></A><H3>propertyChange</H3><PRE>

⌨️ 快捷键说明

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