| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasMetadataWriteback |
| Constructor and Description |
|---|
AbstractJob(String algo)
for bash Job
|
AbstractJob(String algo,
String cp,
String mainclass)
for Java/Perl/JavaModule job
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(SqwFile file)
This adds a file specifically to a job for provisioning.
|
void |
addParent(AbstractJob parent)
add a parent
|
Job |
addParent(Job parent)
add job's parent
|
Job |
addRequirement(Requirement requirement) |
String |
getAlgo()
get the job algorithm
|
Map<String,String> |
getAnnotations()
Set arbitrary key-value annotations on jobs.
|
String |
getClassPath() |
Command |
getCommand() |
Collection<SqwFile> |
getFiles()
This should only be called from the back-end and should not be called by workflow developers.
|
String |
getMainClass()
return the main class for a Java job, or the script.pl for a perl Job
|
String |
getMaxMemory() |
Collection<String> |
getParentAccessions() |
Collection<Job> |
getParents()
add all parent jobs
|
String |
getQsubOptions() |
String |
getQueue() |
Collection<Requirement> |
getRequirements()
get job requirements
|
int |
getThreads() |
boolean |
hasMetadataWriteback()
job specific metadata is not supported yet
|
boolean |
isLocal()
Whether this job should run locally instead of out on a cluster.
|
void |
setAlgo(String algo)
set the job algorithm
|
Command |
setCommand(String cmd)
set the job command
|
void |
setHasMetadataWriteback(boolean metadata)
job specific metadata is not supported yet
|
void |
setLocal()
Sets this job to run locally.
|
void |
setLocal(boolean runLocal)
Sets whether this job should run locally.
|
AbstractJob |
setMaxMemory(String mem)
set max memory
|
void |
setParentAccessions(Collection<String> parentAccessions)
set parent accessiosns for the job
|
void |
setParents(Collection<Job> parents)
set parent jobs
|
void |
setQsubOptions(String qsubOptions)
Allows specifying options to qsub.
|
Job |
setQueue(String queue)
set the queue
|
void |
setRequirements(Collection<Requirement> requirements) |
AbstractJob |
setThreads(int count)
set the max thread number
|
public AbstractJob(String algo)
algo - public Command getCommand()
getCommand in interface Jobpublic Collection<SqwFile> getFiles()
public void addFile(SqwFile file)
public Collection<Job> getParents()
getParents in interface Jobpublic void setParents(Collection<Job> parents)
parents - public void addParent(AbstractJob parent)
parent - public String getAlgo()
public void setAlgo(String algo)
algo - public Collection<Requirement> getRequirements()
public void setRequirements(Collection<Requirement> requirements)
public int getThreads()
getThreads in interface Jobpublic AbstractJob setThreads(int count)
JobsetThreads in interface Jobpublic String getMaxMemory()
getMaxMemory in interface Jobpublic AbstractJob setMaxMemory(String mem)
JobsetMaxMemory in interface Jobpublic String getClassPath()
public String getMainClass()
public Command setCommand(String cmd)
JobsetCommand in interface Jobpublic Job addRequirement(Requirement requirement)
public void setHasMetadataWriteback(boolean metadata)
JobsetHasMetadataWriteback in interface Jobpublic boolean hasMetadataWriteback()
JobhasMetadataWriteback in interface Jobpublic void setParentAccessions(Collection<String> parentAccessions)
JobsetParentAccessions in interface Jobpublic Collection<String> getParentAccessions()
public boolean isLocal()
Jobpublic void setLocal()
Jobpublic void setLocal(boolean runLocal)
Jobpublic String getQsubOptions()
public void setQsubOptions(String qsubOptions)
qsubOptions - Copyright © 2015 SeqWare. All rights reserved.