Name
search — Discovers JXTA advertisements
Synopsis
search [-ppeerid
name
attribute
] | [-n n] | [-r] | [-a] | [-v] | [-f]
Description
Use the search
command to search for advertisements within a peergroup or at a
specified peer location. Running this command with no options lists
only the advertisements already known (cached) by the peer. The
-r
option is used to send a propagate request to
find new advertisements.
The
search
command stores results in the local cache
and inserts advertisements into the environment using the name
adv
X
, in which
X
is a growing integer number.
Options
-
-p
peerid
Searches for advertisements at a given peer location
-
-r
Searches for advertisements using remote propagation
-
-a
Limits the search to advertisements containing an attribute with the given name
-
-v
Limits discovery to advertisements containing an attribute with the given value (in conjunction with the name specified with the
-a
argument)-
-n
Limit the number of responses from a single peer to
n
-
-f
Flushes the local cache of advertisements
Example
JXTA>search -r
Searches for new advertisements by propagating a request throughout the current peergroup.
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.