Class CopyToUnixRecord


  • public class CopyToUnixRecord
    extends Record
    • Constructor Summary

      Constructors 
      Constructor Description
      CopyToUnixRecord()
      Construct a record with a default ID
      CopyToUnixRecord​(java.lang.String id)
      Construct a record with the supplied ID.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getAdditionalOptions()
      Returns the additional options for the unix copy.
      java.lang.String getCommand()
      Return the command "UNIXCOPY" to be stored in the build report.
      java.lang.String getDeployType()
      Get the deploy type.
      java.lang.String getFile()
      Gets the origin file of this copy record
      int getRc()
      Get the rc for this record.
      java.lang.String getRootDir()
      Returns the root directory used for the unix copy.
      java.lang.String getSourcePath()  
      java.lang.String getTargetPath()  
      boolean isOutput()
      Get the output flag.
      CopyToUnixRecord parse​(com.google.gson.JsonObject jsonObject)
      Create the record from JSON.
      void setAdditionalOptions​(java.util.List<java.lang.String> options)
      Sets the additional options for the unix copy.
      void setCommand​(java.lang.String command)
      Set the command "UNIXCOPY" to be stored in the build report.
      void setDeployType​(java.lang.String deployType)
      Set the deploy type.
      void setOutput​(boolean output)
      Set the output flag.
      void setRc​(int rc)  
      void setRootDir​(java.lang.String rootDir)
      Sets the root directory used for the unix copy.
      void setSource​(java.lang.String sourceFile)  
      void setTarget​(java.lang.String targetFile)  
      com.google.gson.JsonObject toJSON()
      Returns the record in JSON format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CopyToUnixRecord

        public CopyToUnixRecord()
        Construct a record with a default ID
      • CopyToUnixRecord

        public CopyToUnixRecord​(java.lang.String id)
        Construct a record with the supplied ID.
        Parameters:
        id - the id of the record.
    • Method Detail

      • getDeployType

        public java.lang.String getDeployType()
        Get the deploy type.
        Returns:
        the deploy type.
      • setDeployType

        public void setDeployType​(java.lang.String deployType)
        Set the deploy type.
        Parameters:
        deployType - the deploy type.
      • isOutput

        public boolean isOutput()
        Get the output flag.
        Returns:
        the output flag.
      • setOutput

        public void setOutput​(boolean output)
        Set the output flag.
        Parameters:
        output - the output flag.
      • getRc

        public int getRc()
        Get the rc for this record.
        Returns:
        the rc of the record
      • setRc

        public void setRc​(int rc)
      • getFile

        public java.lang.String getFile()
        Gets the origin file of this copy record
      • getSourcePath

        public java.lang.String getSourcePath()
      • setSource

        public void setSource​(java.lang.String sourceFile)
      • getTargetPath

        public java.lang.String getTargetPath()
      • setTarget

        public void setTarget​(java.lang.String targetFile)
      • getCommand

        public java.lang.String getCommand()
        Return the command "UNIXCOPY" to be stored in the build report.
        Returns:
        the command "UNIXCOPY" to be stored in the build report.
      • setCommand

        public void setCommand​(java.lang.String command)
        Set the command "UNIXCOPY" to be stored in the build report.
        Parameters:
        command - the command "UNIXCOPY" to be stored in the build report.
      • setAdditionalOptions

        public void setAdditionalOptions​(java.util.List<java.lang.String> options)
        Sets the additional options for the unix copy.
      • getAdditionalOptions

        public java.util.List<java.lang.String> getAdditionalOptions()
        Returns the additional options for the unix copy.
      • setRootDir

        public void setRootDir​(java.lang.String rootDir)
        Sets the root directory used for the unix copy.
        Parameters:
        rootDir -
      • getRootDir

        public java.lang.String getRootDir()
        Returns the root directory used for the unix copy. Can be used to calculate absolute paths if the source and target file paths are relative (typical).
      • toJSON

        public com.google.gson.JsonObject toJSON()
        Description copied from class: Record
        Returns the record in JSON format.
        Overrides:
        toJSON in class Record
        Returns:
        the JSON format of this record.
      • parse

        public CopyToUnixRecord parse​(com.google.gson.JsonObject jsonObject)
                               throws ParseException
        Description copied from class: Record
        Create the record from JSON.
        Overrides:
        parse in class Record
        Parameters:
        jsonObject - The object in JSON to be parsed.
        Returns:
        the record representing by the supplied JSON contents.
        Throws:
        ParseException