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

📄 platformconfigurator.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 This profile is for peers that do not want to be used by other peers, but have a direct connection to the Internet, using a static IP address (with or without NAT), and either not using a firewall (or with the given port open on the firewall).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#createTcpRelayEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String)">createTcpRelayEdge</A></B>(java.lang.String&nbsp;peerName,                   java.lang.String&nbsp;peerDesc,                   java.lang.String&nbsp;ip,                   int&nbsp;port,                   java.util.Vector&nbsp;relays,                   java.util.Vector&nbsp;rdvs,                   java.lang.String&nbsp;user,                   java.lang.String&nbsp;password)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Configure an edge peer with the following properties:   . use TCP   . firewall   . optional NAT   . optional dynamic IP (DHCP) This profile is for peers that are behind a firewall, with of without NAT. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#getPlatformConfigFileName()">getPlatformConfigFileName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Convenience methods that returns the relative pathname of the configuration file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#loadBootStrap(java.lang.String)">loadBootStrap</A></B>(java.lang.String&nbsp;urlString)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Convenience method to load boot strap rendezvous and relays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#loadBootStrap(java.net.URL)">loadBootStrap</A></B>(java.net.URL&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Convenience method to load boot strap rendezvous and relays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#save(net.jxta.impl.protocol.PlatformConfig)">save</A></B>(<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A>&nbsp;adv)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Saves a PlatformConfig in the local directory.</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;<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="PLATFORM_CONFIG_FILENAME"><!-- --></A><H3>PLATFORM_CONFIG_FILENAME</H3><PRE>public static final java.lang.String <B>PLATFORM_CONFIG_FILENAME</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Standard file name where the local configuration is stored.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.PLATFORM_CONFIG_FILENAME">Constant Field Values</A></DL></DL><HR><A NAME="BOOT_STRAP_RENDEZVOUS"><!-- --></A><H3>BOOT_STRAP_RENDEZVOUS</H3><PRE>public static final java.lang.String <B>BOOT_STRAP_RENDEZVOUS</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Standard boot strap url for available rendezvous.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.BOOT_STRAP_RENDEZVOUS">Constant Field Values</A></DL></DL><HR><A NAME="BOOT_STRAP_RELAYS"><!-- --></A><H3>BOOT_STRAP_RELAYS</H3><PRE>public static final java.lang.String <B>BOOT_STRAP_RELAYS</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Standard boot strap url for available relays.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.BOOT_STRAP_RELAYS">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="PlatformConfigurator()"><!-- --></A><H3>PlatformConfigurator</H3><PRE>public <B>PlatformConfigurator</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;</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="getPlatformConfigFileName()"><!-- --></A><H3>getPlatformConfigFileName</H3><PRE>public static java.lang.String <B>getPlatformConfigFileName</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Convenience methods that returns the relative pathname of the configuration file.<P><DD><DL><DT><B>Returns:</B><DD>String the relative path name of the configuration.</DL></DD></DL><HR><A NAME="createTcpEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpEdge</H3><PRE>public static <A HREF="../../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol">ConfigParams</A> <B>createTcpEdge</B>(java.lang.String&nbsp;peerName,                                         java.lang.String&nbsp;peerDesc,                                         java.lang.String&nbsp;ip,                                         int&nbsp;port,                                         java.util.Vector&nbsp;rdvs,                                         java.lang.String&nbsp;user,                                         java.lang.String&nbsp;password)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Configure an edge peer with the following properties:   . static IP   . use TCP   . no firewall   . optional NAT This profile is for peers that do not want to be used by other peers, but have a direct connection to the Internet, using a static IP address (with or without NAT), and either not using a firewall (or with the given port open on the firewall).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peerName</CODE> - name of the peer (mandatory)<DD><CODE>peerDesc</CODE> - description of the peer (optional, can be null)<DD><CODE>ip</CODE> - public IP (or DNS name) of the peer. ip is set to null if there is not a NAT. In case of NAT, ip must be set to the public IP address (or DNS) of the peer.<DD><CODE>port</CODE> - port number (mandatory)<DD><CODE>rdvs</CODE> - vector containing rendezvous seeding peers. The vector contains the addresses (as String) of the seeding rendezvous peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number. If rdvs is set to null, the peer will not have any seeding rendezvous peers.<DD><CODE>user</CODE> - name of the user (mandatory). Set to "password" if the peer does not require user login.<DD><CODE>password</CODE> - password of the user (mandatory). Set to "password" if the peer does not require user login.<DT><B>Returns:</B><DD>PlatformConfig returns a ConfigParams configured as specified.</DL></DD></DL><HR><A NAME="createTcpAdHocEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpAdHocEdge</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createTcpAdHocEdge</B>(java.lang.String&nbsp;peerName,                                                java.lang.String&nbsp;peerDesc,                                                java.lang.String&nbsp;ip,                                                int&nbsp;port,                                                java.util.Vector&nbsp;rdvs,                                                java.lang.String&nbsp;user,                                                java.lang.String&nbsp;password)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Configure an edge peer with the following properties:   . use TCP (with multicast)   . no firewall This profile is for peers that are running in an ad-hoc environement: there is other JXTA peers on the same lan.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peerName</CODE> - name of the peer (mandatory)<DD><CODE>peerDesc</CODE> - description of the peer (optional, can be null)<DD><CODE>ip</CODE> - public IP (or DNS name) of the peer. ip is set to null if there is not a NAT. In case of NAT, ip must be set to the public IP address (or DNS) of the peer.<DD><CODE>port</CODE> - port number (mandatory)<DD><CODE>rdvs</CODE> - vector containing rendezvous seeding peers. The vector contains the addresses (as String) of the seeding rendezvous peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number. If rdvs is set to null, the peer will not have any seeding rendezvous peers.<DD><CODE>user</CODE> - name of the user (mandatory). Set to "password" if the peer does not require user login.<DD><CODE>password</CODE> - password of the user (mandatory). Set to "password" if the peer does not require user login.<DT><B>Returns:</B><DD>PlatformConfig returns a PlatformConfig configured as specified.</DL></DD></DL><HR><A NAME="createTcpRelayEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpRelayEdge</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createTcpRelayEdge</B>(java.lang.String&nbsp;peerName,                                                java.lang.String&nbsp;peerDesc,                                                java.lang.String&nbsp;ip,                                                int&nbsp;port,                                                java.util.Vector&nbsp;relays,                                                java.util.Vector&nbsp;rdvs,                                                java.lang.String&nbsp;user,

⌨️ 快捷键说明

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