QueryManager Class
- public class QueryManager
extends Object
QueryManager is used to submit and return results from the query portion of the DRE.
This is done using the QueryRequest and QueryResult classes.
The default constructor should be used with caution - it hard codes hostname and
port values to the default for the 8.1 beta installation.
-
Hierarchy
-
Object
QueryManager
-
QueryManager()
- Construct a QueryManager with some default parameters.
|
-
QueryManager(
String hostName, int aciPort, int servicePort)
- Construct a AciServer object to represent the DRE.
|
public List |
-
doQuery (QueryRequest queryRequest)
- Send the query request to the DRE and parse the response.
|
public Vector |
-
getDatabaseNames ()
- Read the list of databases from the DRE's configuration and populate a Vector with them.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryManager
public QueryManager()
- Construct a QueryManager with some default parameters. These defaults are the
same as WLP 8.1 shipped with. The defaults are:
- dreHostName - "localhost"
- dreACIPort - 9002
- dreServicePort - 40001
QueryManager
public QueryManager(String
hostName,
int aciPort,
int servicePort)
- Construct a AciServer object to represent the DRE.
doQuery(QueryRequest) Method
public List
doQuery(QueryRequest
queryRequest)
Send the query request to the DRE and parse the response. The response is a List of
QueryResponses.
Parameters
-
queryRequest
- - the query to run.
Returns
- an List of QueryResponses
Related Topics
QueryRequest
QueryResponse
getDatabaseNames() Method
public Vector
getDatabaseNames()
Read the list of databases from the DRE's configuration and populate a Vector with them.
Returns
- the Vector of database names. Each element is a String.