📄 genericpeergroup.html
字号:
<BR> Get an all purpose peerGroup ModuleImplAdvertisement that is compatible with this group. This impl adv can be used to create any group that relies only on the standard services. Or to derive other impl advs, using this impl advertisement as a basis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol">ConfigParams</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getConfigAdvertisement()">getConfigAdvertisement</A></B>()</CODE><BR> Returns the config advertisment for this peer in this group (if any).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getDiscoveryService()">getDiscoveryService</A></B>()</CODE><BR> Return the Discovery Service for this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/endpoint/EndpointService.html" title="interface in net.jxta.endpoint">EndpointService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getEndpointService()">getEndpointService</A></B>()</CODE><BR> Return the Endpoint Service for this Peer Group. This service is present in every Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.ThreadGroup</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getHomeThreadGroup()">getHomeThreadGroup</A></B>()</CODE><BR> Returns the Thread Group in which threads for this peer group will live.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getImplAdvertisement()">getImplAdvertisement</A></B>()</CODE><BR> Returns the advertisment for this service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getInterface()">getInterface</A></B>()</CODE><BR> Service objects are not manipulated directly to protect usage of the service. A Service interface is returned to access the service methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/platform/JxtaLoader.html" title="class in net.jxta.platform">JxtaLoader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getJxtaLoader()">getJxtaLoader</A></B>()</CODE><BR> Get a modified version of the Jxta ClassLoader</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/platform/JxtaLoader.html" title="class in net.jxta.platform">JxtaLoader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getLoader()">getLoader</A></B>()</CODE><BR> Returns the loader for this group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/membership/MembershipService.html" title="interface in net.jxta.membership">MembershipService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getMembershipService()">getMembershipService</A></B>()</CODE><BR> Return the Membership Service for this Peer Group. This service is present in every Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getParentGroup()">getParentGroup</A></B>()</CODE><BR> Get this group's parent group. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerAdvertisement()">getPeerAdvertisement</A></B>()</CODE><BR> Return the PeerAdvertisement of the local Peer within this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/protocol/PeerGroupAdvertisement.html" title="class in net.jxta.protocol">PeerGroupAdvertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupAdvertisement()">getPeerGroupAdvertisement</A></B>()</CODE><BR> Return the PeerGroupAdvertisement for this group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupID()">getPeerGroupID</A></B>()</CODE><BR> Return the Peer Group ID of this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerGroupName()">getPeerGroupName</A></B>()</CODE><BR> Return the Name of this group. This name is not canonical, meaning that there may be other groups with the same name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerID()">getPeerID</A></B>()</CODE><BR> Return the Peer ID by which this Peer is known within this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerInfoService()">getPeerInfoService</A></B>()</CODE><BR> Return the PeerInfo Service for this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPeerName()">getPeerName</A></B>()</CODE><BR> Return the name of the local peer within this group. This name is not canonical, meaning that there may be other peers with the same name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getPipeService()">getPipeService</A></B>()</CODE><BR> Return the Pipe Service for this Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/rendezvous/RendezVousService.html" title="interface in net.jxta.rendezvous">RendezVousService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getRendezVousService()">getRendezVousService</A></B>()</CODE><BR> Return the Rendezvous Service for this Peer Group. This service is optional and may not be present in all groups.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/resolver/ResolverService.html" title="interface in net.jxta.resolver">ResolverService</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getResolverService()">getResolverService</A></B>()</CODE><BR> Return the Resolver Service for this Peer Group. This service is present in every Peer Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#getWeakInterface()">getWeakInterface</A></B>()</CODE><BR> Returns a weak interface object that represents this group. <p> A weak interface object has no life-cycle privileges over the group that it represents and therefore its users have no accountability. A weak interface object is safe to give away but holds no promise of sustained validity. <p> Whatever code gave away a weak interface object retains the power of terminating the group object from which it was obtained, thereby making the weak interface object invalid. <p> A weak interface object is immutable; its unref and stopApp methods do nothing. Its validity is exactly that of the group or interface object from which it was obtained. <p> A weak interface object can be obtained from an interface object, or from a real group object, or from a weak interface object. In the later case, the object returned may be the original weak interface object since such objects are immutable. <p. Whatever code obtains a weak interface object from a group object or regular interface object, remains entirely liable for invoking unref on the initial object before discarding it. Giving away a weak interface object is not equivalent to transfering ownerhsip of the original.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> homeGroup, <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assignedID, <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> impl)</CODE><BR> Initialize the module, passing it its peer group and advertisement. <p/>Note: when subclassing one of the existing PeerGroup implementations (which implement Module), it may not be recommended to overload the init method. See the documentation of the PeerGroup class being subclassed. <p/>It is not recommended to overload this method. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/peergroup/GenericPeerGroup.html#initFirst(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">initFirst</A></B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> homeGroup, <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assignedID, <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> impl)</CODE><BR> Performs all initialization steps that need to be performed before any subclass initialization is performed. </TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -