Name
search — Discovers JXTA advertisements
Synopsis
search [-ppeeridnameattribute] | [-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
-
-ppeerid 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
-aargument)-
-n Limit the number of responses from a single peer to
n-
-f Flushes the local cache of advertisements
Example
JXTA>search -rSearches for new advertisements by propagating a request throughout the current peergroup.
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