Class PMC

  • All Implemented Interfaces:
    CodeGenerator

    public class PMC
    extends Abstract
    This code generator generates a shell script in the submit directory. The shell script can be executed on the submit host to run the workflow locally.
    Version:
    $Revision$
    Author:
    Karan Vahi
    • Field Detail

      • mGridStartFactory

        protected GridStartFactory mGridStartFactory
        The handle to the GridStart Factory.
      • mInitializeGridStart

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

        private final PBS mPBS
        Handle to the PBS Code generator.
    • Constructor Detail

      • PMC

        public PMC()
        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 PMC file generated in the submit directory.
        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. The entries added for this are from the scheduler specific generator
        Specified by:
        getAdditionalBraindumpEntries in class Abstract
        Parameters:
        workflow - the executable workflow
        Returns:
        Map
      • pmcBasename

        protected java.lang.String pmcBasename​(ADag dag)
        Returns the basename for the pmc file for the dag
        Parameters:
        dag - the workflow
        Returns:
        the basenmae
      • getPathtoPMCFile

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