org.globus.ogsa.impl.core.service
Class QueryEngineImpl

java.lang.Object
  extended byorg.globus.ogsa.impl.core.service.QueryEngineImpl
All Implemented Interfaces:
QueryEngine

public class QueryEngineImpl
extends java.lang.Object
implements QueryEngine

Executes queries on service data sets

See Also:
ServiceDataSet

Field Summary
protected static QueryEngine globalQueryEngine
           
 
Constructor Summary
QueryEngineImpl()
           
 
Method Summary
 java.lang.Object executeQuery(ExtensibilityType query, ServiceDataSet serviceDataSet)
          If no external query evaluators are registered for an incoming query expression, then executeQuery is called on the engine.
 ExpressionEvaluator getEvaluator(javax.xml.namespace.QName qname)
          Gets the evaluator currently registered to handle an expression of the specified qualified name (from the top level element of the XML Schema definition of the expression)
 void registerEvaluator(ExpressionEvaluator evaluator)
          registers a new evaluator that can be used to evaluate queries on a service.
 void setGlobalEngine(QueryEngine queryEngine)
          Sets the global engine to delegate to if this engine cannot handle the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalQueryEngine

protected static QueryEngine globalQueryEngine
Constructor Detail

QueryEngineImpl

public QueryEngineImpl()
Method Detail

registerEvaluator

public void registerEvaluator(ExpressionEvaluator evaluator)
Description copied from interface: QueryEngine
registers a new evaluator that can be used to evaluate queries on a service.

Specified by:
registerEvaluator in interface QueryEngine
Parameters:
evaluator - implementation of evaluator to be used for evaluating queries specified in its XML Schema definition.

setGlobalEngine

public void setGlobalEngine(QueryEngine queryEngine)
Description copied from interface: QueryEngine
Sets the global engine to delegate to if this engine cannot handle the request.

Specified by:
setGlobalEngine in interface QueryEngine
Parameters:
queryEngine - a query engine common for all services in a Grid service container

getEvaluator

public ExpressionEvaluator getEvaluator(javax.xml.namespace.QName qname)
Description copied from interface: QueryEngine
Gets the evaluator currently registered to handle an expression of the specified qualified name (from the top level element of the XML Schema definition of the expression)

Specified by:
getEvaluator in interface QueryEngine
Returns:
the matching expression evaluator or null if none was found

executeQuery

public java.lang.Object executeQuery(ExtensibilityType query,
                                     ServiceDataSet serviceDataSet)
                              throws FaultType
Description copied from interface: QueryEngine
If no external query evaluators are registered for an incoming query expression, then executeQuery is called on the engine.

Specified by:
executeQuery in interface QueryEngine
Parameters:
serviceDataSet - ServiceDataSet belonging to Grid service instance to execute the query against
Throws:
FaultType - if the query could not be evaluated


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.