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

📄 peergroupfactory.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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="NULL_CONFIGURATOR"><!-- --></A><H3>NULL_CONFIGURATOR</H3><PRE>public static final java.lang.Class <B>NULL_CONFIGURATOR</B></PRE><DL><DD>Constant for specifying no configurator.<P><DL></DL></DL><HR><A NAME="DEFAULT_CONFIGURATOR"><!-- --></A><H3>DEFAULT_CONFIGURATOR</H3><PRE>public static final java.lang.Class <B>DEFAULT_CONFIGURATOR</B></PRE><DL><DD>Constant for specifying the default configurator.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="setStdPeerGroupClass(java.lang.Class)"><!-- --></A><H3>setStdPeerGroupClass</H3><PRE>public static void <B>setStdPeerGroupClass</B>(java.lang.Class&nbsp;c)</PRE><DL><DD>Static Method to initialize the std peer group class<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Class to use for for general peer group creation.<DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="setPlatformClass(java.lang.Class)"><!-- --></A><H3>setPlatformClass</H3><PRE>public static void <B>setPlatformClass</B>(java.lang.Class&nbsp;c)</PRE><DL><DD>Static Method to initialize the Platform peergroup class<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Class to use for for platform (world) peer group creation.<DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="setNetPGDesc(java.lang.String)"><!-- --></A><H3>setNetPGDesc</H3><PRE>public static void <B>setNetPGDesc</B>(java.lang.String&nbsp;desc)</PRE><DL><DD>Static Method to initialize the default net PG description<P><DD><DL><DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="setNetPGName(java.lang.String)"><!-- --></A><H3>setNetPGName</H3><PRE>public static void <B>setNetPGName</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Static Method to initialize the default net PG name<P><DD><DL><DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="setNetPGID(net.jxta.peergroup.PeerGroupID)"><!-- --></A><H3>setNetPGID</H3><PRE>public static void <B>setNetPGID</B>(<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A>&nbsp;id)</PRE><DL><DD>Static Method to initialize the default net PG ID<P><DD><DL><DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="getConfiguratorClass()"><!-- --></A><H3>getConfiguratorClass</H3><PRE>public static java.lang.Class <B>getConfiguratorClass</B>()</PRE><DL><DD>Static Method to get the configurator<P><DD><DL><DT><B>Returns:</B><DD>Class configurator class</DL></DD></DL><HR><A NAME="setConfiguratorClass(java.lang.Class)"><!-- --></A><H3>setConfiguratorClass</H3><PRE>public static void <B>setConfiguratorClass</B>(java.lang.Class&nbsp;c)</PRE><DL><DD>Static Method to set the configurator<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Class to use as a configurator.<DT><B>Since:</B></DT>  <DD>JXTA 2.2</DD></DL></DD></DL><HR><A NAME="newPeerGroup()"><!-- --></A><H3>newPeerGroup</H3><PRE>public static <A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>newPeerGroup</B>()</PRE><DL><DD>Static Method to create a new peer group instance. After beeing created the init method needs to be called, and the startApp() method may be called, at the invoker's discretion.<P><DD><DL><DT><B>Returns:</B><DD>PeerGroup instance of a new PeerGroup</DL></DD></DL><HR><A NAME="newPlatform()"><!-- --></A><H3>newPlatform</H3><PRE>public static <A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>newPlatform</B>()</PRE><DL><DD>Static Method to create a new peer Plaform The init() method is called automatically. The startApp() method is left for the invoker to call if appropriate. Invoking this method amounts to creating an instance of JXTA. Since JXTA stores its persistent state in the local filesystem relative to the initial current directory, it is unadvisable to start more than one instance with the same current directory.<P><DD><DL><DT><B>Returns:</B><DD>PeerGroup instance of a new Platform<DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="newNetPeerGroup(net.jxta.peergroup.PeerGroup)"><!-- --></A><H3>newNetPeerGroup</H3><PRE>public static <A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>newNetPeerGroup</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;pg)                                 throws <A HREF="../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Until the concept of netPeerGroup is better integrated, we need something straightforward so that applications that whish to control the start-up process can easily bring up a netPeerGroup like startNetPeerGroup does. This method does this.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pg</CODE> - The platform group.<DT><B>Returns:</B><DD>PeerGroup The default netPeerGroup<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="newNetPeerGroup()"><!-- --></A><H3>newNetPeerGroup</H3><PRE>public static <A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>newNetPeerGroup</B>()                                 throws <A HREF="../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Creates a default platform peergroup, from which a new netpeergroug is  created.  This simplifies the method by which applications can start jxta.<P><DD><DL><DT><B>Returns:</B><DD>The newly created net peer group.<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><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PeerGroupFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../net/jxta/peergroup/PeerGroup.IdMaker.html" title="class in net.jxta.peergroup"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PeerGroupFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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