Name
groups — Discovers peergroups
Synopsis
groups [-ppeeridnameattribute] | [-n n] | [-r] | [-l] | [-a] | [-v] | [-f]
Description
This
command discovers peergroups by broadcast or at a specified peer
location. By default, groups lists all the
peergroups known (cached) by the local peer. The
-r option is used to send a propagate request to
find new peergroups.
groups
stores results of the propagate request in the local cache and
inserts advertisements into the environment using the default naming:
group
X, in which
X is a growing integer number.
Options
-
-ppeerid Discovers groups at the given peer location.
-
-r Discovers groups by propagation.
-
-l Displays all known group IDs as a hex string.
-
-a Specifies an attribute name to limit discovery. Peergroups must contain an attribute with the given name.
-
-v Specifies an attribute value to limit discovery. Peergroups must contain an attribute with the given value. This option is used in conjunction with the
-aoption.-
-n Limits the number of responses to
nfrom a single peer.-
-f Flushes all group advertisements from the local cache.
Example
JXTA>groups -rdiscovers all groups.
JXTA>groups -r -aName-vsocce*
discovers all groups with an attribute named
Name that has a value that begins with
“socce.”
JXTA>groups -r -aName-v*occer
discovers all groups with an attribute named
Name that has a value that ends with
“occer.”
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