This class is used to convert in streaming mode information from an
abstract DAG in XML (DAX) into a DAGMan .dag file and a couple of
related files, i.e. Condor submit files and planner control files.
The parser converts the DAX document specified in the commandline.
author: Kavitha Ranganathan author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 289 $ See Also:DAXParser See Also:org.griphyn.vdl.dax.ADAG
Callback when the opening tag was parsed. The attribute maps each
attribute to its raw value. The callback initializes the DAG
writer.
Parameters: attributes - is a map of attribute key to attribute value
Callback when the section 1 filenames are being parsed. This is
unused by design, as the reduction of a DAG according to the
existence of files happens dynamically.
Parameters: filename - is a DAX-style filename elements.
Callback for the job from section 2 jobs. These jobs are completely
assembled, but each is passed separately. For each job, the submit
file needs to be created from the submit file template. Furthermore,
for each submit file, the kickstart control file needs to be written,
and some other useful files for the late planner.
Parameters: job - is the DAX-style job.
Ensures that the submit file references the submit host local
config file. The function will ensure that there is an input
configuration inside the submit file, which refers to the configuration
file.
Point of entry to convert the DAX into DAG with helper and submit files.
Parameters: args - are the commandline arguments.
setConfigFileTemplate
public boolean setConfigFileTemplate(File cft)(Code)
Reads the configuration file template into memory for kickstart V2
file generation. This function is only activated, if kickstart v2
configuration is being requested.
Parameters: cft - is the file that contains the config file template false if unable to read the config file template
Sets the minimum level in the hashed file factory. This is
to remember until the factory actually gets instantiated.
Parameters: level - is the minimum level requested
Allows to set a property from the code.
Parameters: key - is the property key Parameters: value - is the new value to store the previous value, or null
setSubmitFileTemplate
public boolean setSubmitFileTemplate(File sft)(Code)
Reads the submit file template into memory for submit file
generation.
Parameters: sft - is a file that contains the submit file template false if unable to read the submit file template
Sets the timestamp that is being emitted in all files.
Parameters: then - is the new date to use for the timestamping. the previously valid timestamp.
setWorkflowPropertyFile
public void setWorkflowPropertyFile(File wfrc)(Code)
Remembers which workflow property file should be chosen. It will
not be read now. Only its location will be remembered.
Parameters: wfrc - is the location of a property file.