Class PBS

  • All Implemented Interfaces:
    CodeGenerator

    public class PBS
    extends Abstract
    This code generator generates a PBS submit script for the workflow, that can be submitted directly using qsub.
    Version:
    $Revision$
    Author:
    Karan Vahi
    • Field Detail

      • mInitializeGridStart

        protected boolean mInitializeGridStart
        A boolean indicating whether grid start has been initialized or not.
    • Constructor Detail

      • PBS

        public PBS()
        The default constructor.
    • Method Detail

      • generateCode

        public java.util.Collection<java.io.File> generateCode​(ADag dag)
                                                        throws CodeGeneratorException
        Generates the code for the concrete workflow in the GRMS input format. The GRMS input format is xml based. One XML file is generated per workflow.
        Parameters:
        dag - the concrete workflow.
        Returns:
        handle to the GRMS output file.
        Throws:
        CodeGeneratorException - in case of any error occuring code generation.
      • generateCode

        public void generateCode​(ADag dag,
                                 Job job)
                          throws CodeGeneratorException
        Generates the code for a single job in the input format of the workflow executor being used.
        Parameters:
        dag - the dag of which the job is a part of.
        job - the Job object holding the information about that particular job.
        Throws:
        CodeGeneratorException - in case of any error occuring code generation.
      • getAdditionalBraindumpEntries

        public java.util.Map<java.lang.String,​java.lang.String> getAdditionalBraindumpEntries​(ADag workflow)
        Returns a Map containing additional braindump entries that are specific to a Code Generator
        Specified by:
        getAdditionalBraindumpEntries in class Abstract
        Parameters:
        workflow - the executable workflow
        Returns:
        Map
      • pbsBasename

        protected java.lang.String pbsBasename​(ADag dag)
        Returns the basename for the PBS file for the dag
        Parameters:
        dag - the workflow
        Returns:
        the basenmae
      • getPathtoPBSFile

        protected java.lang.String getPathtoPBSFile​(ADag dag)
        Returns the basename for the PBS script file for the dag
        Parameters:
        dag - the workflow
        Returns:
        the basenmae