GenericClient Tool

Description

The GenericClient tool can be used to send queries to arbitrary services. Currently it only supports the query and postQuery functions. Also, attribute requirements are not yet supported.

Source code for this tool can be found in the examples subdirectory.

Usage

You may use the scripts found in the examples/clients/genericClient directory to start the tool. You must provide the host and port on which the service resides. You can then entire SQL like queries and click "Execute Query" to execute them. 

To execute a postQuery call, end your query with "execInterval <seconds>" where <seconds> is the interval in seconds at which you desire callbacks (e.g. select mbpsTotal where name="my.ap.name" execInterval 2 ). Clicking "Stop Query" will remove the posted query from the service.

QParser is capable of parsing four types of literal values in expressions: String, Boolean, Double, and Integer. All quoted literals are parsed as String. All unquoted literals with the values true or false are parsed as Boolean. All numeric literals with a decimal point are parsed as Double. All numeric literals without a decimal point are parsed as Integer. Be sure to use the type of literal your service supports. Be especially careful with Integer and Double because your service may not automatically convert.

If your attribute name includes a period in the name, you currently must quote it in the "where clause" with square brackets as in select person.name where [person.name]="George".