Name
mkadv — Makes an advertisement
Synopsis
mkadv -g|p [[-tpipetype] [-ddoc] [name]]
Description
mkadv
creates a peergroup or pipe
advertisement from a document stored in a shell environment variable.
A symbolic name can be associated with the advertisement; this name
can be used to search for the advertisement. A name must be supplied
when creating a new group advertisement; this is the name of the
peergroup.
Options
-
-p Creates a pipe advertisement.
-
-t This option is valid only for pipe advertisements and will be used to define the type of pipes. It is presently unimplemented.
-
-g Creates a new peergroup advertisement. If no document is given, a clone of the current peergroup is created. The new peergroup will have the same services and endpoints as the current group. If a document argument is supplied, the document must be a peergroup advertisement and is used to create the new peergroup.
-
-d This is the environment variable that contains a structured document that holds an advertisement.
Example
JXTA>importfile -f saveadv groupadvJXTA>mygroupadv = mkadv -g -d groupadvJXTA>mkpgrp -d mygroupadv mygroup
This creates a new peergroup from an advertisement created from a
StructuredDocument that was imported from the
saveadv file and stored in the
groupadv environment variable. The new group is
given the name mygroup. Before you can do anything
with the group, you need to join it with the join
command.
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