org.gcube.searchsystem.planning
Class Orchestrator

java.lang.Object
  extended by org.gcube.searchsystem.planning.Orchestrator

public class Orchestrator
extends Object

This class is the entrypoint for answering CQL queries. It triggers the preprocessing, planning and execution for answering a CQL query. The outcome provided by this class is the ResultSet EPR containing the final outcome, and the warnings produced during the whole search process.

Author:
vasilis verroios - NKUA DI

Constructor Summary
Orchestrator()
           
 
Method Summary
 ArrayList<Preprocessor> getPreprocessors()
          getter for the list of processors to apply before planning
 ArrayList<String> getPriorities()
          getter for the list of priorities for the planning stage
 ArrayList<String> getWarnings()
          getter for the list of warnings for the last search
 String search(String cqlQuery, EnvironmentAdaptor environmentAdaptor, WorkflowEngineAdaptor workflowAdaptor, PlanCache pCache)
          receives a GCQL query and returns a ResultSet EPR containing the results
 void setPreprocessors(ArrayList<Preprocessor> preprocessors)
          setter for the list of processors to apply before planning
 void setPriorities(ArrayList<String> priorities)
          setter for the list of priorities for the planning stage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orchestrator

public Orchestrator()
Method Detail

search

public String search(String cqlQuery,
                     EnvironmentAdaptor environmentAdaptor,
                     WorkflowEngineAdaptor workflowAdaptor,
                     PlanCache pCache)
              throws Exception
receives a GCQL query and returns a ResultSet EPR containing the results

Parameters:
GCQL - query
environmentAdaptor - - the adaptor for the environment of this search operation
workflowAdaptor - - the adaptor for the workflow engine used for this search operation
Returns:
ResultSet EPR containing the results
Throws:
Exception

setPreprocessors

public void setPreprocessors(ArrayList<Preprocessor> preprocessors)
setter for the list of processors to apply before planning

Parameters:
preprocessors -

getPreprocessors

public ArrayList<Preprocessor> getPreprocessors()
getter for the list of processors to apply before planning

Parameters:
preprocessors -

getPriorities

public ArrayList<String> getPriorities()
getter for the list of priorities for the planning stage

Returns:
priorities

setPriorities

public void setPriorities(ArrayList<String> priorities)
setter for the list of priorities for the planning stage

Parameters:
priorities -

getWarnings

public ArrayList<String> getWarnings()
getter for the list of warnings for the last search

Parameters:
warnings -


Copyright © 2012. All Rights Reserved.