Name

PeerAdvertisement

Synopsis

This advertisement represents the availability of a peer. Peer advertisements are created and published automatically when you join a peergroup; you can discover the advertisements of other peers via the discovery service. The advertisement contains the following properties:

Name

The name of the peer

ID

The unique ID of the peer

PeerGroupID

The unique ID of the peergroup in which this advertisement was found; peers that join multiple groups will publish their advertisement in each group

Description

The description of the peer

ServiceParams

The set of services that are registered with and available to the peer

public abstract class PeerAdvertisement extends net.jxta.document.Advertisement implements Cloneable {
// Public Constructors
   public PeerAdvertisement();  
// Public Class Methods
   public static String getAdvertisementType();  
// Property Accessor Methods (by property name)
   public String getDebugLevel();  
   public void setDebugLevel(String debugLevel);  
   public String getDescription();  
   public void setDescription(String description);  
   public net.jxta.id.ID getID();                               
// Overrides:Advertisement
   public String getName();  
   public void setName(String name);  
   public net.jxta.peergroup.PeerGroupID getPeerGroupID();  
   public void setPeerGroupID(net.jxta.peergroup.PeerGroupID gid);
   public net.jxta.peer.PeerID getPeerID();  
   public void setPeerID(net.jxta.peer.PeerID pid);  
   public java.util.Hashtable getServiceParams();  
   public void setServiceParams(java.util.Hashtable ...

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.