📄 genericpeergroup.html
字号:
</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> <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="parentGroup"><!-- --></A><H3>parentGroup</H3><PRE>protected <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>parentGroup</B></PRE><DL><DD>This service implements a group but, being a Service, it runs inside of some group. That's its home group. <p/>Exception: The platform itself does not have one. It has to be self sufficient.<P><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="GenericPeerGroup()"><!-- --></A><H3>GenericPeerGroup</H3><PRE>public <B>GenericPeerGroup</B>()</PRE><DL></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="getJxtaLoader()"><!-- --></A><H3>getJxtaLoader</H3><PRE>public static <A HREF="../../../../net/jxta/platform/JxtaLoader.html" title="class in net.jxta.platform">JxtaLoader</A> <B>getJxtaLoader</B>()</PRE><DL><DD>Get a modified version of the Jxta ClassLoader<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setJxtaLoader(net.jxta.platform.JxtaLoader)"><!-- --></A><H3>setJxtaLoader</H3><PRE>public static void <B>setJxtaLoader</B>(<A HREF="../../../../net/jxta/platform/JxtaLoader.html" title="class in net.jxta.platform">JxtaLoader</A> newLoader)</PRE><DL><DD>Set a modified version of the Jxta ClassLoader<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getHomeThreadGroup()"><!-- --></A><H3>getHomeThreadGroup</H3><PRE>public java.lang.ThreadGroup <B>getHomeThreadGroup</B>()</PRE><DL><DD>Returns the Thread Group in which threads for this peer group will live.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html#getHomeThreadGroup()">getHomeThreadGroup</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>ThreadGroup</DL></DD></DL><HR><A NAME="addService(net.jxta.id.ID, net.jxta.service.Service)"><!-- --></A><H3>addService</H3><PRE>protected void <B>addService</B>(<A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> name, <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> service)</PRE><DL><DD>Adds a service to the set. <p/>Removes any pre-existing one with the same name.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="lookupService(net.jxta.id.ID)"><!-- --></A><H3>lookupService</H3><PRE>public <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>lookupService</B>(<A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> name) throws <A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A></PRE><DL><DD>Call a service by name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html#lookupService(net.jxta.id.ID)">lookupService</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the service name<DT><B>Returns:</B><DD>Service, the Service registered by that name<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A></CODE> - could not find the service requested</DL></DD></DL><HR><A NAME="checkServices()"><!-- --></A><H3>checkServices</H3><PRE>protected void <B>checkServices</B>() throws <A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A></PRE><DL><DD>check that all required services are registered<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A></CODE></DL></DD></DL><HR><A NAME="removeService(net.jxta.platform.ModuleClassID, net.jxta.service.Service)"><!-- --></A><H3>removeService</H3><PRE>protected void <B>removeService</B>(<A HREF="../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> name, <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> service) throws <A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A>, <A HREF="../../../../net/jxta/exception/ViolationException.html" title="class in net.jxta.exception">ViolationException</A></PRE><DL><DD>Ask a group to unregister and unload a service<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - handle to the service to be removed<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/ServiceNotFoundException.html" title="class in net.jxta.exception">ServiceNotFoundException</A></CODE><DD><CODE><A HREF="../../../../net/jxta/exception/ViolationException.html" title="class in net.jxta.exception">ViolationException</A></CODE></DL></DD></DL><HR><A NAME="compatible(net.jxta.document.Element)"><!-- --></A><H3>compatible</H3><PRE>public abstract boolean <B>compatible</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> compat)</PRE><DL><DD>Evaluates if the given compatibility statement makes the module that bears it is lodable by this group.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html#compatible(net.jxta.document.Element)">compatible</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean True if the given statement is compatible.</DL></DD></DL><HR><A NAME="loadModule(net.jxta.id.ID, net.jxta.document.Advertisement)"><!-- --></A><H3>loadModule</H3><PRE>public <A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A> <B>loadModule</B>(<A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assigned, <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> impl) throws <A HREF="../../../../net/jxta/exception/ProtocolNotSupportedException.html" title="class in net.jxta.exception">ProtocolNotSupportedException</A>, <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>Load a module from a ModuleImplAdv. Compatibility is checked and load is attempted. If compatible and loaded successfuly, the resulting Module is init()ed and returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html#loadModule(net.jxta.id.ID, net.jxta.document.Advertisement)">loadModule</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>assigned</CODE> - Id to be assigned to that module (usually its ClassID).<DD><CODE>impl</CODE> - An implementation advertisement for that module.<DT><B>Returns:</B><DD>Module the module loaded and initialized.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/ProtocolNotSupportedException.html" title="class in net.jxta.exception">ProtocolNotSupportedException</A></CODE> - The module is a protocol and is disabled per the peer's configuration.<DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - The module could not be loaded or initialized</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -