Class DAXJob

  • All Implemented Interfaces:
    GraphNodeContent, java.lang.Cloneable

    public class DAXJob
    extends Job
    This is a data class that stores the contents of the DAX job in a DAX conforming to schema 3.0 or higher.
    Version:
    $Revision$
    Author:
    Karan Vahi
    • Field Detail

      • JOB_PREFIX

        public static final java.lang.String JOB_PREFIX
        The prefix to be attached for the DAX jobs
        See Also:
        Constant Field Values
      • mDAXLFN

        private java.lang.String mDAXLFN
        The DAX LFN.
      • mDAXFile

        private java.lang.String mDAXFile
        The DAX File that the job refers to.
      • mDirectory

        private java.lang.String mDirectory
        The directory in which the DAX needs to execute.
    • Constructor Detail

      • DAXJob

        public DAXJob()
        The default constructor.
      • DAXJob

        public DAXJob​(Job job)
        The overloaded construct that constructs a DAX job by wrapping around the Job job.
        Parameters:
        job - the original job description.
    • Method Detail

      • setDAXLFN

        public void setDAXLFN​(java.lang.String lfn)
        Sets the DAX file LFN
        Parameters:
        lfn - the LFN of the DAX file.
      • getDAXLFN

        public java.lang.String getDAXLFN()
        Returns the lfn for the DAXFile the job refers to.
        Returns:
        the lfn
      • setDAXFile

        public void setDAXFile​(java.lang.String file)
        Sets the DAX file
        Parameters:
        file - the path to the DAX file.
      • getDAXFile

        public java.lang.String getDAXFile()
        Returns the DAXFile the job refers to.
        Returns:
        dag file
      • generateName

        public java.lang.String generateName​(java.lang.String prefix)
        Generates a name for the job that serves as the primary id for the job
        Parameters:
        prefix - any prefix that needs to be applied while constructing the job name
        Returns:
        the id for the job
      • setDirectory

        public void setDirectory​(java.lang.String directory)
        Sets the directory in which the dag needs to execute.
        Overrides:
        setDirectory in class Job
        Parameters:
        directory - the directory where dag needs to execute
      • getDirectory

        public java.lang.String getDirectory()
        Returns the directory the job refers to.
        Overrides:
        getDirectory in class Job
        Returns:
        the directory.
      • toString

        public java.lang.String toString()
        Returns a textual description of the DAX Job.
        Overrides:
        toString in class Job
        Returns:
        the textual description.
      • clone

        public java.lang.Object clone()
        Returns a new copy of the Object. The implementation is faulty. There is a shallow copy for the profiles. That is the clone retains references to the original object.
        Overrides:
        clone in class Job
        Returns:
        Object