Name

PeerGroupAdvertisement

Synopsis

This is the advertisement that identifies a peergroup. Instances of this advertisement are obtained by discovery or by the getPeerGroupAdvertisement( ) method of the PeerGroup class. The PeerGroup class creates this advertisement based on the ModuleImplAdvertisement used to create the peergroup. This advertisement contains the following elements:

Name

The name of the peergroup

ID

The unique peergroup ID of the peergroup

Description

The description of the peergroup

ServiceParams

The set of parameters for each service that the peergroup supports

public abstract class PeerGroupAdvertisement extends net.jxta.document.Advertisement implements Cloneable {
// Public Constructors
   public PeerGroupAdvertisement();  
// Public Class Methods
   public static String getAdvertisementType();  
// Property Accessor Methods (by property name)
   public String getDescription();  
   public void setDescription(String description);  
   public net.jxta.id.ID getID();                               
// Overrides:Advertisement
   public net.jxta.platform.ModuleSpecID getModuleSpecID();  
   public void setModuleSpecID(net.jxta.platform.ModuleSpecID sid);
   public String getName();  
   public void setName(String name);  
   public net.jxta.peergroup.PeerGroupID getPeerGroupID();  
   public void setPeerGroupID(net.jxta.peergroup.PeerGroupID gid); 
   public java.util.Hashtable getServiceParams();  
   public void setServiceParams(java.util.Hashtable params);  
// Public Instance Methods
   public net.jxta.document.StructuredDocument getServiceParam ...

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.