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

📄 platform.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 before any subclass initialization is performed. <p/>Classes that override this method should always call <code>super.initFirst()</code> <strong>before</strong> doing any of their own work. This method loads and initializes all modules described in the given implementation advertisement. Then, all modules are placed in a list and the list is processed iteratively. During each iteration, the <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method of each module is invoked once. Iterations continue until no progress is being made or the list is empty. <p/>The status returned by the <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method of each module is considered as follows: <ul> <li><A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>: The module is removed from the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will not be invoked again. </li> <li><A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_PROGRESS"><CODE>Module.START_AGAIN_PROGRESS</CODE></A>: The module remains in the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will be invoked during the next iteration, if there is one. </li> <li><A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>: The module remains in the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will be invoked during the next iteration if there is one. </li> <li>Any other value: The module failed to initialize. Its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will not be invoked again.</li> </ul> <p/>Iterations through the list stop when: <ul> <li>The list is empty: the group initialization proceeds.</li> <li>A complete iteration was performed and all modules returned <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>: a <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception"><CODE>PeerGroupException</CODE></A> is thrown.</li> <li>A number of complete iteration completed without any module returning <A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>: a <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception"><CODE>PeerGroupException</CODE></A> is thrown. The number of complete iterations before that happens is computed as 1 + the square of the number of modules currently in the list.</li> </ul></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/Platform.html#initLast()">initLast</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform all initialization steps that need to be performed after any subclass initialization is performed. <p/>Classes that override this method should always call super.initLast <strong>after</strong> doing any of their own work.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/Platform.html#invalidateConfigAdvertisement()">invalidateConfigAdvertisement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mark the saved configuration as being invalid. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../net/jxta/protocol/ModuleImplAdvertisement.html" title="class in net.jxta.protocol">ModuleImplAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/Platform.html#mkPlatformImplAdv()">mkPlatformImplAdv</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>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/Platform.html#saveConfigAdvertisement(net.jxta.impl.protocol.PlatformConfig)">saveConfigAdvertisement</A></B>(<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A>&nbsp;config)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save config advertisement after the init. </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/peergroup/Platform.html#stopApp()">stopApp</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stops the group and all its services. <p/>PeerGroupInterface's stopApp() does nothing. Only a real reference to the group object permits to stop it without going through ref counting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/Platform.html#validateConfigAdvertisement()">validateConfigAdvertisement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mark the saved configuration as being valid. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.impl.peergroup.StdPeerGroup"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.impl.peergroup.<A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html" title="class in net.jxta.impl.peergroup">StdPeerGroup</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html#compatible(net.jxta.document.Element)">compatible</A>, <A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html#isCompatible(net.jxta.document.Element)">isCompatible</A>, <A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html#loadAllModules(java.util.Hashtable, net.jxta.platform.ModuleClassID, boolean)">loadAllModules</A>, <A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html#mkImplAdvBuiltin(net.jxta.platform.ModuleSpecID, java.lang.String, java.lang.String)">mkImplAdvBuiltin</A>, <A HREF="../../../../net/jxta/impl/peergroup/StdPeerGroup.html#startApp(java.lang.String[])">startApp</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.impl.peergroup.GenericPeerGroup"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.impl.peergroup.<A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html" title="class in net.jxta.impl.peergroup">GenericPeerGroup</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#addService(net.jxta.id.ID, net.jxta.service.Service)">addService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#checkServices()">checkServices</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#decRefCount()">decRefCount</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getAccessService()">getAccessService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getConfigAdvertisement()">getConfigAdvertisement</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getDiscoveryService()">getDiscoveryService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getEndpointService()">getEndpointService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getHomeThreadGroup()">getHomeThreadGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getImplAdvertisement()">getImplAdvertisement</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getInterface()">getInterface</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getJxtaLoader()">getJxtaLoader</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getLoader()">getLoader</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getMembershipService()">getMembershipService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getParentGroup()">getParentGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerAdvertisement()">getPeerAdvertisement</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupAdvertisement()">getPeerGroupAdvertisement</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupID()">getPeerGroupID</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupName()">getPeerGroupName</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerID()">getPeerID</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerInfoService()">getPeerInfoService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerName()">getPeerName</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPipeService()">getPipeService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getRendezVousService()">getRendezVousService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getResolverService()">getResolverService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getWeakInterface()">getWeakInterface</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#isRendezvous()">isRendezvous</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#loadModule(net.jxta.id.ID, net.jxta.document.Advertisement)">loadModule</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#loadModule(net.jxta.id.ID, net.jxta.document.Advertisement, boolean)">loadModule</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#loadModule(net.jxta.id.ID, net.jxta.platform.ModuleSpecID, int)">loadModule</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#loadModule(net.jxta.id.ID, net.jxta.platform.ModuleSpecID, int, boolean)">loadModule</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#lookupService(net.jxta.id.ID)">lookupService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#newGroup(net.jxta.document.Advertisement)">newGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#newGroup(net.jxta.peergroup.PeerGroupID)">newGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#newGroup(net.jxta.peergroup.PeerGroupID, net.jxta.document.Advertisement, java.lang.String, java.lang.String)">newGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#publishGroup(java.lang.String, java.lang.String)">publishGroup</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#removeService(net.jxta.platform.ModuleClassID, net.jxta.service.Service)">removeService</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#setConfigAdvertisement(net.jxta.protocol.ConfigParams)">setConfigAdvertisement</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#setJxtaLoader(net.jxta.platform.JxtaLoader)">setJxtaLoader</A>, <A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#unref()">unref</A></CODE></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 =========== --><!-- ========= 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="Platform()"><!-- --></A><H3>Platform</H3><PRE>public <B>Platform</B>()</PRE><DL><DD>Default 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="initFirst(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)"><!-- --></A><H3>initFirst</H3><PRE>protected void <B>initFirst</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;nullParent,                         <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A>&nbsp;assignedID,                         <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;impl)                  throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Performs all initialization steps that need to be performed before any subclass initialization is performed. <p/>Classes that override this method should always call <code>super.initFirst()</code> <strong>before</strong> doing any of their own work. This method loads and initializes all modules described in the given implementation advertisement. Then, all modules are placed in a list and the list is processed iteratively. During each iteration, the <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method of each module is invoked once. Iterations continue until no progress is being made or the list is empty. <p/>The status returned by the <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method of each module is considered as follows: <ul> <li><A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>: The module is removed from the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will not be invoked again. </li> <li><A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_PROGRESS"><CODE>Module.START_AGAIN_PROGRESS</CODE></A>: The module remains in the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will be invoked during the next iteration, if there is one. </li> <li><A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>: The module remains in the list of modules to be started and its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will be invoked during the next iteration if there is one. </li> <li>Any other value: The module failed to initialize. Its <A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])"><CODE>Module.startApp(String[])</CODE></A> method will not be invoked again.</li> </ul> <p/>Iterations through the list stop when: <ul> <li>The list is empty: the group initialization proceeds.</li> <li>A complete iteration was performed and all modules returned <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>: a <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception"><CODE>PeerGroupException</CODE></A> is thrown.</li> <li>A number of complete iteration completed without any module returning <A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>: a <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception"><CODE>PeerGroupException</CODE></A> is thrown. The number of complete iterations before that happens is

⌨️ 快捷键说明

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