📄 relayserver.html
字号:
<CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayServer.html#isConnectionOriented()">isConnectionOriented</A></B>()</CODE><BR> Returns true if the endpoint protocol can establish connection to the remote host (like TCP).</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/relay/RelayServer.html#messengerReady(net.jxta.endpoint.MessengerEvent)">messengerReady</A></B>(<A HREF="../../../../../net/jxta/endpoint/MessengerEvent.html" title="class in net.jxta.endpoint">MessengerEvent</A> event)</CODE><BR> A messenger is ready</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/relay/RelayServer.html#ping(net.jxta.endpoint.EndpointAddress)">ping</A></B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr)</CODE><BR> Returns true if the target address is reachable via this Message Transport otherwise returns false.</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/relay/RelayServer.html#propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, java.lang.String)">propagate</A></B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParams, java.lang.String prunePeer)</CODE><BR> Propagates a Message on this EndpointProtocol.</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/relay/RelayServer.html#removeClient(java.lang.String, net.jxta.impl.endpoint.relay.RelayServerClient)">removeClient</A></B>(java.lang.String clientPeerId, <A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayServerClient.html" title="class in net.jxta.impl.endpoint.relay">RelayServerClient</A> handler)</CODE><BR> </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/relay/RelayServer.html#run()">run</A></B>()</CODE><BR> </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/relay/RelayServer.html#startServer()">startServer</A></B>()</CODE><BR> </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/relay/RelayServer.html#stopServer()">stopServer</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayServer.html#transportControl(java.lang.Object, java.lang.Object)">transportControl</A></B>(java.lang.Object operation, java.lang.Object Value)</CODE><BR> Pass a transport control object to a message transport</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> <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> <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="serviceName"><!-- --></A><H3>serviceName</H3><PRE>protected java.lang.String <B>serviceName</B></PRE><DL><DL></DL></DL><HR><A NAME="peerId"><!-- --></A><H3>peerId</H3><PRE>protected java.lang.String <B>peerId</B></PRE><DL><DL></DL></DL><HR><A NAME="group"><!-- --></A><H3>group</H3><PRE>protected <A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>group</B></PRE><DL><DL></DL></DL><HR><A NAME="relayServerCache"><!-- --></A><H3>relayServerCache</H3><PRE>protected net.jxta.impl.endpoint.relay.RelayServer.RelayServerCache <B>relayServerCache</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="RelayServer(net.jxta.peergroup.PeerGroup, java.lang.String, int, long, long, int, long)"><!-- --></A><H3>RelayServer</H3><PRE>public <B>RelayServer</B>(<A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> group, java.lang.String serviceName, int maxClients, long maxLeaseLength, long stallTimeout, int clientQueueSize, long minBroadcastInterval)</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="getRelayedClients()"><!-- --></A><H3>getRelayedClients</H3><PRE>public java.util.Vector <B>getRelayedClients</B>()</PRE><DL><DD>Debug routine: returns the list of relayedClients with details.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="startServer()"><!-- --></A><H3>startServer</H3><PRE>public void <B>startServer</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="stopServer()"><!-- --></A><H3>stopServer</H3><PRE>public void <B>stopServer</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPublicAddress()"><!-- --></A><H3>getPublicAddress</H3><PRE>public <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> <B>getPublicAddress</B>()</PRE><DL><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#getPublicAddress()">getPublicAddress</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndpointAddress containing the public address for this message receiver.</DL></DD></DL><HR><A NAME="isConnectionOriented()"><!-- --></A><H3>isConnectionOriented</H3><PRE>public boolean <B>isConnectionOriented</B>()</PRE><DL><DD>Returns true if the endpoint protocol can establish connection to the remote host (like TCP).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#isConnectionOriented()">isConnectionOriented</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol is connection oriented.</DL></DD></DL><HR><A NAME="allowsRouting()"><!-- --></A><H3>allowsRouting</H3><PRE>public boolean <B>allowsRouting</B>()</PRE><DL><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#allowsRouting()">allowsRouting</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol can be used by the EndpointRouter</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 operation, java.lang.Object Value)</PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -