Class TransferJob

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

    public class TransferJob
    extends Job
    This is a data class that stores the contents of the transfer job that transfers the data. Later on stdin etc, would be stored in it.
    Version:
    $Revision$
    Author:
    Karan Vahi vahi@isi.edu, Gaurang Mehta gmehta@isi.edu
    • Field Detail

      • mNonTPTSite

        private java.lang.String mNonTPTSite
        The site at which the transfer jobs would have run, had it been running in a peer 2 peer transfer mode (non third party mode).
    • Constructor Detail

      • TransferJob

        public TransferJob()
        The default constructor.
      • TransferJob

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

      • getNonThirdPartySite

        public java.lang.String getNonThirdPartySite()
        Returns the site at which the job would have run if the transfer job was being run in non third party mode. If the job is run in a non third party mode, the result should be the same as the site where the transfer job has been scheduled.
        Returns:
        the site at which the job would have run in a non third party mode, null if not set.
      • setNonThirdPartySite

        public void setNonThirdPartySite​(java.lang.String site)
        Sets the non third party site for the transfer job. This is the site at which the job would have run if the transfer job was being run in non third party mode.
        Parameters:
        site - the name of the site
      • toString

        public java.lang.String toString()
        Returns a textual description of the Transfer 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