|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.impl.QueryEngineImpl
public class QueryEngineImpl
Executes queries on resource property sets. The engine looks for evaluators under "java:comp/env/query/eval" context.
ResourcePropertySet| Field Summary | |
|---|---|
private java.util.Hashtable |
evaluators
|
private static org.globus.util.I18n |
i18n
|
(package private) static org.apache.commons.logging.Log |
logger
|
private QueryMetricsData |
metrics
|
private static java.lang.String |
QUERY_EVALUATOR_CONTEXT
|
| Constructor Summary | |
|---|---|
QueryEngineImpl()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
executeQuery(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
Executes a query against a resource property set. |
ExpressionEvaluator |
getEvaluator(java.lang.String dialect)
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) |
MetricsData |
getMetricsData()
Retruns metrics data. |
void |
refresh()
Reinitializes the evaluators list from JNDI context. |
void |
registerEvaluator(ExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate queries on a service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private static java.lang.String QUERY_EVALUATOR_CONTEXT
private java.util.Hashtable evaluators
private QueryMetricsData metrics
| Constructor Detail |
|---|
public QueryEngineImpl()
| Method Detail |
|---|
public void refresh()
registerEvaluator() function they will be lost.
public void registerEvaluator(ExpressionEvaluator evaluator)
QueryEngine
registerEvaluator in interface QueryEngineevaluator - implementation of evaluator to be used for evaluating
queries
specified in its XML Schema definition.public ExpressionEvaluator getEvaluator(java.lang.String dialect)
QueryEngine
getEvaluator in interface QueryEngine
public java.lang.Object executeQuery(QueryExpressionType expression,
ResourcePropertySet resourcePropertySet)
throws UnsupportedQueryDialectException,
QueryEvaluationException,
InvalidQueryExpressionException,
QueryException
QueryEngine
executeQuery in interface QueryEngineexpression - query expressionresourcePropertySet - resource properties set to execute the query
against
SOAPElment or
DOM Element.
If the result object returned is null an empty query result
is returned.
UnsupportedQueryDialectException - if query dialect is
unsupported.
QueryEvaluationException - if query evaluation fails.
InvalidQueryExpressionException - if query expression is invalid.
QueryException - if any other errorpublic MetricsData getMetricsData()
Metrics
getMetricsData in interface Metrics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||