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 Job
public Collection<SqwFile> getFiles()
public void addFile(SqwFile file)
public Collection<Job> getParents()
getParents
in interface Job
public 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 Job
public AbstractJob setThreads(int count)
Job
setThreads
in interface Job
public String getMaxMemory()
getMaxMemory
in interface Job
public AbstractJob setMaxMemory(String mem)
Job
setMaxMemory
in interface Job
public String getClassPath()
public String getMainClass()
public Command setCommand(String cmd)
Job
setCommand
in interface Job
public Job addRequirement(Requirement requirement)
public void setHasMetadataWriteback(boolean metadata)
Job
setHasMetadataWriteback
in interface Job
public boolean hasMetadataWriteback()
Job
hasMetadataWriteback
in interface Job
public void setParentAccessions(Collection<String> parentAccessions)
Job
setParentAccessions
in interface Job
public Collection<String> getParentAccessions()
public boolean isLocal()
Job
public void setLocal()
Job
public void setLocal(boolean runLocal)
Job
public String getQsubOptions()
public void setQsubOptions(String qsubOptions)
qsubOptions
- Copyright © 2015 SeqWare. All rights reserved.