public abstract class OozieJob extends Object implements Comparable<OozieJob>
Modifier and Type | Field and Description |
---|---|
protected List<OozieJob> |
children |
protected AbstractJob |
jobObj |
protected String |
maxMemorySgeParamFormat |
protected boolean |
metadataWriteback |
protected String |
okTo |
protected String |
oozie_working_dir |
protected List<String> |
parentAccessionFiles |
protected Collection<String> |
parentAccessions |
protected List<OozieJob> |
parents |
static String |
SCRIPTS_SUBDIR
The sub-directory (of the working directory) in which generated script files will be placed.
|
protected File |
scriptsDir |
protected File |
seqwareJar |
protected String |
seqwareJarPath |
static String |
SGE_MAX_MEMORY_PARAM_VARIABLE
Variable identifier to be used within the qsub max-memory parameter to specify the value.
|
static String |
SGE_THREADS_PARAM_VARIABLE
Variable identifier to be used within the qsub threads parameter to specify the value.
|
static org.jdom.Namespace |
SGE_XMLNS
Namespace of the Oozie SGE action xml node.
|
protected String |
threadsSgeParamFormat |
protected boolean |
useSge |
static org.jdom.Namespace |
WF_XMLNS
Namespace of the Oozie workflow xml nodes.
|
protected String |
wfrAccession |
protected boolean |
wfrAncesstor |
Constructor and Description |
---|
OozieJob(AbstractJob job,
String longName,
String oozie_working_dir,
boolean useSge,
File seqwareJar,
String threadsSgeParamFormat,
String maxMemorySgeParamFormat,
StringTruncator truncator) |
Modifier and Type | Method and Description |
---|---|
protected static org.jdom.Element |
add(org.jdom.Element parent,
String tag) |
protected static org.jdom.Element |
add(org.jdom.Element parent,
String tag,
String text) |
void |
addParent(OozieJob parent) |
boolean |
addParentAccessionFile(String... pafs)
Return true only when an accession file is added successfully
|
protected static org.jdom.Element |
addProp(org.jdom.Element config,
String name,
String value) |
static String |
annotationFileName(String jobName) |
int |
compareTo(OozieJob that) |
static String |
concat(String delim,
List<String> args) |
protected abstract org.jdom.Element |
createJavaElement() |
protected String |
createPathToJava() |
protected abstract org.jdom.Element |
createSgeElement() |
protected File |
emitAnnotations(Map<String,String> annotations) |
protected File |
emitOptionsFile() |
boolean |
equals(Object obj) |
protected static File |
file(File dir,
String filename,
boolean exec) |
List<String> |
getAccessionFile() |
Collection<OozieJob> |
getChildren() |
AbstractJob |
getJobObject() |
String |
getLongName() |
String |
getOkTo() |
String |
getOozieWorkingDir() |
Collection<OozieJob> |
getParents() |
File |
getScriptsDir() |
String |
getShortName() |
String |
getWorkflowRunAccession() |
boolean |
hasFork() |
int |
hashCode() |
boolean |
hasJoin() |
boolean |
hasMetadataWriteback() |
boolean |
isUseCheckFile() |
boolean |
isWorkflowRunAncesstor() |
static String |
optsFileName(String jobName) |
static String |
runnerFileName(String jobName) |
protected ArrayList<String> |
runnerMetaDataArgs()
Returns the metadata arg list for the Runner.
|
static File |
scriptsDir(String oozieWorkingDir) |
org.jdom.Element |
serializeXML() |
void |
setLongName(String longName) |
void |
setMetadataWriteback(boolean metadataWriteback) |
void |
setOkTo(String okTo) |
void |
setParentAccessions(Collection<String> parentAccessions) |
void |
setUseCheckFile(boolean useCheckFile) |
void |
setWorkflowRunAccession(String wfrAccession) |
void |
setWorkflowRunAncesstor(boolean wfrAncesstor) |
String |
toString() |
protected static void |
write(String contents,
File file) |
protected void |
writeScript(String contents,
File file) |
public static final String SGE_THREADS_PARAM_VARIABLE
public static final String SGE_MAX_MEMORY_PARAM_VARIABLE
public static final String SCRIPTS_SUBDIR
public static final org.jdom.Namespace WF_XMLNS
public static final org.jdom.Namespace SGE_XMLNS
protected String okTo
protected Collection<String> parentAccessions
protected String wfrAccession
protected boolean wfrAncesstor
protected AbstractJob jobObj
protected boolean metadataWriteback
protected String oozie_working_dir
protected boolean useSge
protected String seqwareJarPath
protected final String threadsSgeParamFormat
protected final String maxMemorySgeParamFormat
protected final File scriptsDir
protected final File seqwareJar
public OozieJob(AbstractJob job, String longName, String oozie_working_dir, boolean useSge, File seqwareJar, String threadsSgeParamFormat, String maxMemorySgeParamFormat, StringTruncator truncator)
public final org.jdom.Element serializeXML()
protected abstract org.jdom.Element createSgeElement()
protected abstract org.jdom.Element createJavaElement()
protected ArrayList<String> runnerMetaDataArgs()
protected File emitOptionsFile()
protected static org.jdom.Element add(org.jdom.Element parent, String tag)
protected static org.jdom.Element addProp(org.jdom.Element config, String name, String value)
public void setLongName(String longName)
public String getLongName()
public String getOozieWorkingDir()
public void setParentAccessions(Collection<String> parentAccessions)
public boolean hasMetadataWriteback()
public void setMetadataWriteback(boolean metadataWriteback)
public String getWorkflowRunAccession()
public void setWorkflowRunAccession(String wfrAccession)
public boolean isWorkflowRunAncesstor()
public void setWorkflowRunAncesstor(boolean wfrAncesstor)
public void addParent(OozieJob parent)
public Collection<OozieJob> getParents()
public Collection<OozieJob> getChildren()
public void setOkTo(String okTo)
public String getOkTo()
public boolean hasFork()
public boolean hasJoin()
public AbstractJob getJobObject()
public boolean addParentAccessionFile(String... pafs)
pafs
- public boolean isUseCheckFile()
public void setUseCheckFile(boolean useCheckFile)
useCheckFile
- the useCheckFile to setprotected String createPathToJava()
public File getScriptsDir()
public String getShortName()
public int compareTo(OozieJob that)
compareTo
in interface Comparable<OozieJob>
Copyright © 2015 SeqWare. All rights reserved.