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

📄 modulemanager.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/util/ModuleManager.html#stopModule(java.lang.String)">stopModule</A></B>(java.lang.String&nbsp;moduleName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stopModule This method is invoked by the application to stop a running module.</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 ======== --><!-- ============ 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="startModule(java.lang.String, java.lang.String[])"><!-- --></A><H3>startModule</H3><PRE>public void <B>startModule</B>(java.lang.String&nbsp;moduleName,                        java.lang.String[]&nbsp;args)</PRE><DL><DD>startModule This method is invoked by the application to start a previously loaded module.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleName</CODE> - is the symbolic name of the module.<DD><CODE>args</CODE> - is an array of String containing optional arguments for the module. This array is passed directely to the startApp (String[] ) method of the Module.</DL></DD></DL><HR><A NAME="stopModule(java.lang.String)"><!-- --></A><H3>stopModule</H3><PRE>public void <B>stopModule</B>(java.lang.String&nbsp;moduleName)</PRE><DL><DD>stopModule This method is invoked by the application to stop a running module.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleName</CODE> - is the symbolic name of the module.</DL></DD></DL><HR><A NAME="getModuleManager(net.jxta.peergroup.PeerGroup)"><!-- --></A><H3>getModuleManager</H3><PRE>public static <A HREF="../../../../net/jxta/impl/util/ModuleManager.html" title="class in net.jxta.impl.util">ModuleManager</A> <B>getModuleManager</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;group)</PRE><DL><DD>getModuleManager This method is used in order to get the instance of the ModuleManager for a given PeerGroup. getModuleManager will create a new instance automatically if there is no instance for the given PeerGroup.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the PeerGroup for which the ModuleManager is asked.<DT><B>Returns:</B><DD>the ModuleManager instance for the given PeerGroup.</DL></DD></DL><HR><A NAME="lookupModule(java.lang.String)"><!-- --></A><H3>lookupModule</H3><PRE>public <A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A> <B>lookupModule</B>(java.lang.String&nbsp;moduleName)</PRE><DL><DD>lookupModule Get the Module from its symbolic name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleName</CODE> - symbolic name of the Module<DT><B>Returns:</B><DD>the Module for the given name. null is returned if there is no module of the given name.</DL></DD></DL><HR><A NAME="loadModule(java.lang.String, net.jxta.impl.util.ModuleManager.ModuleManagerLoader)"><!-- --></A><H3>loadModule</H3><PRE>public <A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A> <B>loadModule</B>(java.lang.String&nbsp;moduleName,                         <A HREF="../../../../net/jxta/impl/util/ModuleManager.ModuleManagerLoader.html" title="interface in net.jxta.impl.util">ModuleManager.ModuleManagerLoader</A>&nbsp;loader)</PRE><DL><DD>loadModule Loads a Module. A class loaded is provided by the application. If the module has already been loaded, the existing Module is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleName</CODE> - symbolic name of the Module<DD><CODE>loader</CODE> - application provided class loader<DT><B>Returns:</B><DD>the Module for the given name. null is returned if the module could not be loaded</DL></DD></DL><HR><A NAME="loadModule(java.lang.String, java.lang.String)"><!-- --></A><H3>loadModule</H3><PRE>public <A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A> <B>loadModule</B>(java.lang.String&nbsp;moduleName,                         java.lang.String&nbsp;moduleCode)</PRE><DL><DD>loadModule Loads a Module. The default PeerGroup class loader will be used. The class must be within the CLASSPATH of the platform. If the module has already been loaded, the existing Module is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleName</CODE> - symbolic name of the Module<DD><CODE>moduleCode</CODE> - the name of the class to be loaded.<DT><B>Returns:</B><DD>the Module for the given name. null is returned if the module could not be loaded</DL></DD></DL><HR><A NAME="createServiceAdvertisement(net.jxta.peergroup.PeerGroup, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, net.jxta.platform.ModuleClassID, net.jxta.platform.ModuleSpecID, java.lang.String, net.jxta.document.Advertisement, long, long)"><!-- --></A><H3>createServiceAdvertisement</H3><PRE>public void <B>createServiceAdvertisement</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;group,                                       java.lang.String&nbsp;moduleName,                                       java.lang.String&nbsp;description,                                       java.lang.String&nbsp;moduleSpecURI,                                       java.lang.String&nbsp;moduleCode,                                       java.lang.String&nbsp;moduleCodeURI,                                       <A HREF="../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A>&nbsp;mcID,                                       <A HREF="../../../../net/jxta/platform/ModuleSpecID.html" title="class in net.jxta.platform">ModuleSpecID</A>&nbsp;msID,                                       java.lang.String&nbsp;code,                                       <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;serviceAdv,                                       long&nbsp;localTTL,                                       long&nbsp;remoteTTL)                                throws java.io.IOException</PRE><DL><DD>Creates a Module Class, Spec, and Impl advertisements, and adds the service  Advertisement as part of the Module Impl Advertisement, and publishes the advertisements  in local cache<P><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - group<DD><CODE>moduleName</CODE> - module name<DD><CODE>description</CODE> - module description<DD><CODE>moduleSpecURI</CODE> - module spec uri<DD><CODE>moduleCode</CODE> - module code<DD><CODE>moduleCodeURI</CODE> - module code uri<DD><CODE>mcID</CODE> - module class id<DD><CODE>msID</CODE> - module spec id<DD><CODE>serviceAdv</CODE> - service advertisement<DD><CODE>localTTL</CODE> - local cache lifetime in ms<DD><CODE>remoteTTL</CODE> - remote cache lifetime in ms<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an io error occurs</DL></DD></DL><HR><A NAME="getServiceAdvertisement(net.jxta.peergroup.PeerGroup, net.jxta.protocol.ModuleImplAdvertisement, java.lang.String)"><!-- --></A><H3>getServiceAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> <B>getServiceAdvertisement</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;group,                                             <A HREF="../../../../net/jxta/protocol/ModuleImplAdvertisement.html" title="class in net.jxta.protocol">ModuleImplAdvertisement</A>&nbsp;mia,                                             java.lang.String&nbsp;advertismentType)                                      throws java.io.IOException</PRE><DL><DD>Retreives a Service Advertisement from a module impl advertisement<P><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - peer group<DD><CODE>mia</CODE> - ModuleImplAdvertisement<DD><CODE>advertismentType</CODE> - service advertisment string Type<DT><B>Returns:</B><DD>The service Advertisement<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an io error occurs</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/ModuleManager.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/impl/util/JxtaTimer.html" title="class in net.jxta.impl.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/util/ProducerBiasedQueue.html" title="class in net.jxta.impl.util"><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="ModuleManager.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&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 + -