org.gcube.searchsystem.workflow
Interface WorkflowEngineAdaptor

All Known Implementing Classes:
PE2ngWorkflowAdaptor

public interface WorkflowEngineAdaptor

Classes that implement this interface are given a search plan and are able to create a plan for an execution engine. They can also execute the search plan, directly, and return a resultSet epr containing the final outcome of the search operation.

Author:
vasilis verroios

Method Summary
 java.lang.Object getExecutionPlan(gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan)
          create an execution plan for the search plan provided.
 java.lang.String getExecutionResult(gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan)
          execute a search plan and return a resultSet epr containing the final outcome of the search operation.
 

Method Detail

getExecutionResult

java.lang.String getExecutionResult(gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan)
                                    throws java.lang.Exception
execute a search plan and return a resultSet epr containing the final outcome of the search operation.

Parameters:
plan - - the search plan
Returns:
resultSet epr containing the final outcome of the search operation.
Throws:
java.lang.Exception - in case of an error during the creation of the Execution plan, or in case of an error during the execution

getExecutionPlan

java.lang.Object getExecutionPlan(gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan)
                                  throws java.lang.Exception
create an execution plan for the search plan provided.

Parameters:
plan - - the search plan
Returns:
the execution plan
Throws:
java.lang.Exception - in case of an error during the creation of the Execution plan.