Class HopImportBase

    • Field Detail

      • inputFolderName

        protected String inputFolderName
      • outputFolderName

        protected String outputFolderName
      • sharedXmlFilename

        protected String sharedXmlFilename
      • kettlePropertiesFilename

        protected String kettlePropertiesFilename
      • jdbcPropertiesFilename

        protected String jdbcPropertiesFilename
      • skippingExistingTargetFiles

        protected boolean skippingExistingTargetFiles
      • targetConfigFilename

        protected String targetConfigFilename
      • defaultPipelineRunConfiguration

        protected String defaultPipelineRunConfiguration
      • defaultWorkflowRunConfiguration

        protected String defaultWorkflowRunConfiguration
      • skippingHiddenFilesAndFolders

        protected boolean skippingHiddenFilesAndFolders
      • skippingFolders

        protected boolean skippingFolders
      • collectedVariables

        protected IVariables collectedVariables
      • inputFolder

        protected org.apache.commons.vfs2.FileObject inputFolder
      • outputFolder

        protected org.apache.commons.vfs2.FileObject outputFolder
      • connectionCounter

        protected int connectionCounter
      • variableCounter

        protected int variableCounter
      • metadataTargetFolder

        protected String metadataTargetFolder
    • Constructor Detail

      • HopImportBase

        public HopImportBase()
    • Method Detail

      • collectVariablesFromKettleProperties

        protected void collectVariablesFromKettleProperties()
                                                     throws HopException
        Throws:
        HopException
      • getInputFolder

        public org.apache.commons.vfs2.FileObject getInputFolder()
        Specified by:
        getInputFolder in interface IHopImport
      • getOutputFolder

        public org.apache.commons.vfs2.FileObject getOutputFolder()
        Specified by:
        getOutputFolder in interface IHopImport
      • getInputFolderName

        public String getInputFolderName()
        Gets inputFolderName
        Specified by:
        getInputFolderName in interface IHopImport
        Returns:
        value of inputFolderName
      • setInputFolderName

        public void setInputFolderName​(String inputFolderName)
        Parameters:
        inputFolderName - The inputFolderName to set
      • getOutputFolderName

        public String getOutputFolderName()
        Gets outputFolderName
        Specified by:
        getOutputFolderName in interface IHopImport
        Returns:
        value of outputFolderName
      • setOutputFolderName

        public void setOutputFolderName​(String outputFolderName)
        Parameters:
        outputFolderName - The outputFolderName to set
      • getConnectionFileMap

        public TreeMap<String,​String> getConnectionFileMap()
        Gets connectionFileList
        Returns:
        value of connectionFileList
      • setConnectionFileMap

        public void setConnectionFileMap​(TreeMap<String,​String> connectionFileMap)
        Parameters:
        connectionFileMap - The connectionFileList to set
      • getConnectionsList

        public List<DatabaseMeta> getConnectionsList()
        Gets connectionsList
        Returns:
        value of connectionsList
      • setConnectionsList

        public void setConnectionsList​(List<DatabaseMeta> connectionsList)
        Parameters:
        connectionsList - The connectionsList to set
      • setInputFolder

        public void setInputFolder​(org.apache.commons.vfs2.FileObject inputFolder)
        Parameters:
        inputFolder - The inputFolder to set
      • setOutputFolder

        public void setOutputFolder​(org.apache.commons.vfs2.FileObject outputFolder)
        Parameters:
        outputFolder - The outputFolder to set
      • getLog

        public ILogChannel getLog()
        Gets log
        Returns:
        value of log
      • getMigratedFilesMap

        public HashMap<String,​DOMSource> getMigratedFilesMap()
        Gets migratedFilesMap
        Returns:
        value of migratedFilesMap
      • setMigratedFilesMap

        public void setMigratedFilesMap​(HashMap<String,​DOMSource> migratedFilesMap)
        Parameters:
        migratedFilesMap - The migratedFilesMap to set
      • getConnectionCounter

        public int getConnectionCounter()
        Gets connectionCounter
        Returns:
        value of connectionCounter
      • setConnectionCounter

        public void setConnectionCounter​(int connectionCounter)
        Parameters:
        connectionCounter - The connectionCounter to set
      • getVariableCounter

        public int getVariableCounter()
        Gets variableCounter
        Returns:
        value of variableCounter
      • setVariableCounter

        public void setVariableCounter​(int variableCounter)
        Parameters:
        variableCounter - The variableCounter to set
      • isSkippingExistingTargetFiles

        public boolean isSkippingExistingTargetFiles()
        Gets skippingExistingTargetFiles
        Specified by:
        isSkippingExistingTargetFiles in interface IHopImport
        Returns:
        value of skippingExistingTargetFiles
      • setSkippingExistingTargetFiles

        public void setSkippingExistingTargetFiles​(boolean skippingExistingTargetFiles)
        Specified by:
        setSkippingExistingTargetFiles in interface IHopImport
        Parameters:
        skippingExistingTargetFiles - The skippingExistingTargetFiles to set
      • getSharedXmlFilename

        public String getSharedXmlFilename()
        Gets sharedXmlFilename
        Specified by:
        getSharedXmlFilename in interface IHopImport
        Returns:
        value of sharedXmlFilename
      • setSharedXmlFilename

        public void setSharedXmlFilename​(String sharedXmlFilename)
        Specified by:
        setSharedXmlFilename in interface IHopImport
        Parameters:
        sharedXmlFilename - The sharedXmlFilename to set
      • getKettlePropertiesFilename

        public String getKettlePropertiesFilename()
        Gets kettlePropertiesFilename
        Specified by:
        getKettlePropertiesFilename in interface IHopImport
        Returns:
        value of kettlePropertiesFilename
      • setKettlePropertiesFilename

        public void setKettlePropertiesFilename​(String kettlePropertiesFilename)
        Specified by:
        setKettlePropertiesFilename in interface IHopImport
        Parameters:
        kettlePropertiesFilename - The kettlePropertiesFilename to set
      • getJdbcPropertiesFilename

        public String getJdbcPropertiesFilename()
        Gets jdbcPropertiesFilename
        Specified by:
        getJdbcPropertiesFilename in interface IHopImport
        Returns:
        value of jdbcPropertiesFilename
      • setJdbcPropertiesFilename

        public void setJdbcPropertiesFilename​(String jdbcPropertiesFilename)
        Specified by:
        setJdbcPropertiesFilename in interface IHopImport
        Parameters:
        jdbcPropertiesFilename - The jdbcPropertiesFilename to set
      • getVariables

        public IVariables getVariables()
        Gets variables
        Returns:
        value of variables
      • getTargetConfigFilename

        public String getTargetConfigFilename()
        Gets targetConfigFilename
        Specified by:
        getTargetConfigFilename in interface IHopImport
        Returns:
        value of targetConfigFilename
      • setTargetConfigFilename

        public void setTargetConfigFilename​(String targetConfigFilename)
        Specified by:
        setTargetConfigFilename in interface IHopImport
        Parameters:
        targetConfigFilename - The targetConfigFilename to set
      • getDefaultPipelineRunConfiguration

        public String getDefaultPipelineRunConfiguration()
      • setDefaultPipelineRunConfiguration

        public void setDefaultPipelineRunConfiguration​(String defaultPipelineRunConfiguration)
      • getDefaultWorkflowRunConfiguration

        public String getDefaultWorkflowRunConfiguration()
      • setDefaultWorkflowRunConfiguration

        public void setDefaultWorkflowRunConfiguration​(String defaultWorkflowRunConfiguration)
      • getCollectedVariables

        public IVariables getCollectedVariables()
        Gets collectedVariables
        Returns:
        value of collectedVariables
      • setCollectedVariables

        public void setCollectedVariables​(IVariables collectedVariables)
        Parameters:
        collectedVariables - The collectedVariables to set
      • getMonitor

        public IProgressMonitor getMonitor()
        Gets monitor
        Returns:
        value of monitor
      • setMonitor

        public void setMonitor​(IProgressMonitor monitor)
        Parameters:
        monitor - The monitor to set
      • getMetadataTargetFolder

        public String getMetadataTargetFolder()
        Gets metadataTargetFolder
        Returns:
        value of metadataTargetFolder
      • setMetadataTargetFolder

        public void setMetadataTargetFolder​(String metadataTargetFolder)
        Parameters:
        metadataTargetFolder - The metadataTargetFolder to set
      • isSkippingHiddenFilesAndFolders

        public boolean isSkippingHiddenFilesAndFolders()
        Gets skippingHiddenFilesAndFolders
        Specified by:
        isSkippingHiddenFilesAndFolders in interface IHopImport
        Returns:
        value of skippingHiddenFilesAndFolders
      • setSkippingHiddenFilesAndFolders

        public void setSkippingHiddenFilesAndFolders​(boolean skippingHiddenFilesAndFolders)
        Specified by:
        setSkippingHiddenFilesAndFolders in interface IHopImport
        Parameters:
        skippingHiddenFilesAndFolders - The skippingHiddenFilesAndFolders to set
      • isSkippingFolders

        public boolean isSkippingFolders()
        Gets skippingFolders
        Specified by:
        isSkippingFolders in interface IHopImport
        Returns:
        value of skippingFolders
      • setSkippingFolders

        public void setSkippingFolders​(boolean skippingFolders)
        Specified by:
        setSkippingFolders in interface IHopImport
        Parameters:
        skippingFolders - The skippingFolders to set
      • getImportReport

        public abstract String getImportReport()
        Generate a report with statistics and advice.
        Specified by:
        getImportReport in interface IHopImport
        Returns:
        The import report