Peergroup Advertisements
A peergroup advertisement describes peergroup-specific resources: name, group ID, description, specification, and service parameters. (See Example 14-2.)
Example 14-2. Peergroup advertisement schema
<xs:element name="PGA" type="jxta:PGA"/>
<xs:complexType name="PGA">
<xs:element name="GID" type="JXTAID"/>
<xs:element name="MSID" type="JXTAID"/>
<xs:element name="Name" type="xs:string" minOccurs="0"/>
<xs:element name="Desc" type="xs:anyType" min0ccurs="0"/>
<xs:element name="Svc" type="jxta:serviceParam" minOccurs="0"
maxOccurs="unbounded"/>
</xs:complexType>The elements in Example 14-2 are:
-
GID This element provides the peergroup ID, which is the canonical way of referring to a peergroup and uniquely identifies the peergroup.
-
MSID Peergroup specification ID. This designates the module that provides the peergroup mechanism itself for that group. The specification ID designates a specification of the peergroup behavior. This abstraction is optionally described by a module specification advertisement, and any number of implementations may exist, each described by a module implementation advertisement. These advertisements may all be searched via this specification ID.
-
Name This is an optional name that can be associated with a peergroup. The name is not required to be unique unless it is obtained from a naming service that guarantees name uniqueness.
-
Desc This is an optional element that provides descriptive information that may be used to index ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access