gr.uoa.di.madgik.workflow.adaptor
Interface IWorkflowAdaptor

All Known Implementing Classes:
WorkflowCondorAdaptor, WorkflowGridAdaptor, WorkflowHadoopAdaptor, WorkflowJDLAdaptor

public interface IWorkflowAdaptor

The Interface IWorkflowAdaptor, and its implementers, are the main entry point to the Workflow Engine in order to construct an internally managed workflow through the Execution Engine when the description of the workflow is already know using one of the supported workflow definition languages.

Author:
gpapanikos

Method Summary
 void CreatePlan()
          Based on the provided resources, a call to this method will do all the needed processing and once completed a full execution plan will be created
 gr.uoa.di.madgik.execution.plan.ExecutionPlan GetCreatedPlan()
          Retrieves the created plan after the successful invocation of the CreatePlan()
 Set<IOutputResource> GetOutput()
          The retrieved set of output resources contains informations needed as to how to retrieve the outputs of the workflow after the execution of the created plan
 void SetAdaptorResources(IAdaptorResources Resources)
          Sets the adaptor resources.
 void SetExecutionId(String ExecutionId)
          Sets the execution id which will be associated with the created plan
 

Method Detail

SetAdaptorResources

void SetAdaptorResources(IAdaptorResources Resources)
                         throws WorkflowValidationException
Sets the adaptor resources. These include all the needed inputs that the workflow will need in order to construct the internal execution plan and will be later needed during the execution of this plan.

Parameters:
Resources - the resources needed
Throws:
WorkflowValidationException - Problem with the validity of one of the provided elements

CreatePlan

void CreatePlan()
                throws WorkflowValidationException,
                       WorkflowSerializationException,
                       WorkflowInternalErrorException,
                       WorkflowEnvironmentException
Based on the provided resources, a call to this method will do all the needed processing and once completed a full execution plan will be created

Throws:
WorkflowValidationException - Problem with the validity of one of the provided elements
WorkflowSerializationException - Problem with the serialization of one of the provided elements
WorkflowInternalErrorException - An internal error has occurred
WorkflowEnvironmentException - There was a problem with the environment the Workflow Engine is contained

GetCreatedPlan

gr.uoa.di.madgik.execution.plan.ExecutionPlan GetCreatedPlan()
Retrieves the created plan after the successful invocation of the CreatePlan()

Returns:
the execution plan

GetOutput

Set<IOutputResource> GetOutput()
The retrieved set of output resources contains informations needed as to how to retrieve the outputs of the workflow after the execution of the created plan

Returns:
A set of the output resources retrieval information

SetExecutionId

void SetExecutionId(String ExecutionId)
Sets the execution id which will be associated with the created plan

Parameters:
ExecutionId - The execution id


Copyright © 2012. All Rights Reserved.