public class WhiteStarWorkflowEngine extends Object implements WorkflowEngine
Constructor and Description |
---|
WhiteStarWorkflowEngine(AbstractWorkflowDataModel objectModel,
boolean useSge,
String threadsSgeParamFormat,
String maxMemorySgeParamFormat,
boolean createDirectories,
boolean parallel) |
Modifier and Type | Method and Description |
---|---|
String |
getLookupToken()
An engine-specific token for this workflow run that can be used to lookup relevant runtime data.
|
String |
getWorkingDirectory()
The working directory for the prepared workflow run, or null if not yet prepared or if not applicable for the concrete engine.
|
void |
prepareWorkflow(AbstractWorkflowDataModel objectModel)
Prepare the workflow according to the info filled in the input objectModel.
|
void |
prepareWorkflow(AbstractWorkflowDataModel objectModel,
File nfsWorkDir) |
ReturnValue |
runWorkflow()
Run the prepared workflow.
|
ReturnValue |
runWorkflow(SortedSet<String> set)
Run a workflow, steps contained within set are skipped.
|
ReturnValue |
watchWorkflow(String jobToken)
Watch a workflow and return running information until it completes.
|
public WhiteStarWorkflowEngine(AbstractWorkflowDataModel objectModel, boolean useSge, String threadsSgeParamFormat, String maxMemorySgeParamFormat, boolean createDirectories, boolean parallel)
objectModel
- useSge
- threadsSgeParamFormat
- maxMemorySgeParamFormat
- createDirectories
- true when creating the engine to launch a jobparallel
- public void prepareWorkflow(AbstractWorkflowDataModel objectModel)
WorkflowEngine
prepareWorkflow
in interface WorkflowEngine
objectModel
- model of the workflow to prepare to runpublic void prepareWorkflow(AbstractWorkflowDataModel objectModel, File nfsWorkDir)
objectModel
- nfsWorkDir
- pass a working directory to skip creation of scripts in the generated-scriptspublic ReturnValue runWorkflow()
WorkflowEngine
runWorkflow
in interface WorkflowEngine
public ReturnValue runWorkflow(SortedSet<String> set)
set
- a sorted set of workflow stepspublic ReturnValue watchWorkflow(String jobToken)
WorkflowEngine
watchWorkflow
in interface WorkflowEngine
public String getWorkingDirectory()
WorkflowEngine
getWorkingDirectory
in interface WorkflowEngine
public String getLookupToken()
WorkflowEngine
getLookupToken
in interface WorkflowEngine
Copyright © 2015 SeqWare. All rights reserved.