For an example of the use of an iterative query, see JAXRQueryIterative.java in the directory install/registry-samples/query-iterative/src. This program finds all registry objects whose names match a given string and then iterates through the first 100 of them.
Go to the directory install/registry-samples/query-iterative.
Type the following command, specifying a string value:
Ant-base/ant run -Dname=string |
For example, if you specify the argument ma, the output of the run target begins something like this:
run: [java] Name string is ma [java] Query URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Got registry service and declarative query manager [java] Executing query for 10 objects starting with no. 0 [java] Object type is ClassificationNode [java] Object name is Administration of Human Resource Programs [java] Object type is ClassificationNode [java] Object name is All Other Information Services [java] Object type is ClassificationNode [java] Object name is Administration of Human Resource Programs [java] Object type is ClassificationNode [java] Object name is All Other Information Services [java] Object type is ClassificationNode [java] Object name is All Other Animal Production [java] Object type is ClassificationNode [java] Object name is All Other Animal Production [java] Object type is ClassificationNode [java] Object name is Animal [java] Object type is ClassificationNode [java] Object name is Administration of Human Resource Programs [java] Object type is ClassificationNode [java] Object name is Animal Aquaculture [java] Object type is ClassificationNode [java] Object name is Administration of Human Resource Programs [java] Executing query for 10 objects starting with no. 10 [java] Object type is AdhocQuery [java] Object name is GetCallersUser ... |