public class AutoMetaSearch extends ServiceAdmin implements AutoMetaSearchDef
Modifier and Type | Field and Description |
---|---|
protected PasswordHandler |
passwordHandler
The password handler
|
protected java.util.ArrayList<java.lang.String> |
queryIDs
List of IDs for queries currently being executed
|
protected ServiceSpec |
serviceSpec
Initialisation service specification
|
adminInfo, contractManager, keywordHandler, service, serviceAdminKey, services, serviceTypes, workInfo
Constructor and Description |
---|
AutoMetaSearch(Service theParent,
PasswordHandler thePasswordHandler)
Create a new instance of AutoMetaSearch.
|
Modifier and Type | Method and Description |
---|---|
org.licas_xml.abs.Element |
autoSearch(java.lang.String queryEngine,
int callTimeout,
org.licas_xml.abs.Element request,
ServiceLinks serverLinks)
Allow the server to perform queries over all of the registered autonomic managers,
to find matching information.
|
clearInstanceValues, createFullServiceMeta, createMetaForRepos, createServiceMeta, getAdminInfo, getContractManager, getInstanceValues, getKeywordHandler, getService, getService, getServiceClasses, getServiceNames, getServiceNames, getServiceNames, getServiceOrWrapper, getServiceType, getServiceTypes, removeAllServices, removeAllServices, removeService, removeService, setAdminInfo, setWorkInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceClasses, getServiceNames, getServiceNames, getServiceTypes
protected java.util.ArrayList<java.lang.String> queryIDs
protected PasswordHandler passwordHandler
protected ServiceSpec serviceSpec
public AutoMetaSearch(Service theParent, PasswordHandler thePasswordHandler) throws java.lang.Exception
theParent
- the parent service.thePasswordHandler
- the parent password handler.java.lang.Exception
- any error.public org.licas_xml.abs.Element autoSearch(java.lang.String queryEngine, int callTimeout, org.licas_xml.abs.Element request, ServiceLinks serverLinks) throws java.lang.Exception
request
element should have the tag name of QueryConst
.QUERYMODEL
,
or 'Query_Model'. This should then contain a description of the query request.
For this default model, the XML request that is passed in needs to be parsed by
a QueryParser
parser into a QueryModel
object, of the 'licas_text'
package. This is what the default classes will then evaluate. The documentation
describes the different fields in more detail.autoSearch
in interface AutoMetaSearchDef
queryEngine
- the query engine type. Required for a distributed query.callTimeout
- maximum time allowed for the call (in milliseconds).request
- the query request.serverLinks
- for links with other servers. These will also be queried.java.lang.Exception
- any error.