org.gcube.searchsystem.planning
Class Orchestrator

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

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

Constructor Detail

Orchestrator

public Orchestrator()
Method Detail

search

public java.lang.String search(java.lang.String cqlQuery,
                               EnvironmentAdaptor environmentAdaptor,
                               WorkflowEngineAdaptor workflowAdaptor,
                               PlanCache pCache)
                        throws java.lang.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:
java.lang.Exception

setPreprocessors

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

Parameters:
preprocessors -

getPreprocessors

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

Parameters:
preprocessors -

getPriorities

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

Returns:
priorities

setPriorities

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

Parameters:
priorities -

getWarnings

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

Parameters:
warnings -