public class LocalExecutionService extends AbstractExecutionService implements WorkflowCompiler
Constructor and Description |
---|
LocalExecutionService()
Constructs an execution service that executes workflows using the T2
dataflow engine.
|
Modifier and Type | Method and Description |
---|---|
protected Execution |
createExecutionImpl(WorkflowBundle workflowBundle,
Workflow workflow,
Profile profile,
Bundle dataBundle)
Creates an implementation of an Execution.
|
Dataflow |
getDataflow(Workflow workflow)
Convert a workflow into a dataflow.
|
Dataflow |
getDataflow(WorkflowBundle bundle)
Convert a workflow bundle into a dataflow.
|
Set<ExecutionEnvironment> |
getExecutionEnvironments()
Returns the ExecutionEnvironments available for this ExecutionService.
|
void |
setActivityService(ActivityService activityService)
Sets the service for creating activities.
|
void |
setDispatchLayerService(DispatchLayerService dispatchLayerService)
Sets the service for creating dispatch layers.
|
void |
setEdits(Edits edits)
Sets the Edits Service for creating Taverna Dataflows.
|
void |
setReferenceService(ReferenceService referenceService)
Sets the reference service.
|
cancel, createExecution, delete, getDescription, getExecution, getID, getName, getWorkflowReport, pause, resume, start
public LocalExecutionService()
public Set<ExecutionEnvironment> getExecutionEnvironments()
ExecutionService
getExecutionEnvironments
in interface ExecutionService
protected Execution createExecutionImpl(WorkflowBundle workflowBundle, Workflow workflow, Profile profile, Bundle dataBundle) throws InvalidWorkflowException
AbstractExecutionService
ExecutionService
.createExecutionImpl
in class AbstractExecutionService
workflowBundle
- the WorkflowBundle
containing the Workflow
s required for
executionworkflow
- the Workflow
to executeprofile
- the Profile
to use when executing the Workflow
dataBundle
- the Bundle
containing the data values for the Workflow
InvalidWorkflowException
- if the specified workflow is invalidpublic void setEdits(Edits edits)
edits
- the Edits Service for creating Taverna Dataflowspublic void setActivityService(ActivityService activityService)
activityService
- the service for creating activitiespublic void setDispatchLayerService(DispatchLayerService dispatchLayerService)
dispatchLayerService
- the service for creating dispatch layerspublic void setReferenceService(ReferenceService referenceService)
referenceService
- the reference servicepublic Dataflow getDataflow(Workflow workflow) throws InvalidWorkflowException
WorkflowCompiler
getDataflow
in interface WorkflowCompiler
workflow
- the workflow to convert; must not be nullInvalidWorkflowException
- If the compilation fails.public Dataflow getDataflow(WorkflowBundle bundle) throws InvalidWorkflowException
WorkflowCompiler
getDataflow
in interface WorkflowCompiler
bundle
- the workflow bundle to convert; must not be nullInvalidWorkflowException
- If the compilation fails.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.