psdi.iface.app.swcatalog.http

Class ImportKBT

  • java.lang.Object
    • psdi.iface.app.swcatalog.http.ImportKBT


  • public class ImportKBT
    extends java.lang.Object
    ImportKBT calls the actual processing for SwKBT http import. It is called via #main() or from the SWKBT cron task. See the crontask parameter descriptions for definitions of the fields.
    Since:
    7.2
    • Constructor Detail

      • ImportKBT

        public ImportKBT()
        ImportCLI Constructor
    • Method Detail

      • performImport

        public boolean performImport()
                              throws MXSystemException,
                                     MXException,
                                     java.rmi.RemoteException
        performImport is the start of the actual import processing. This is called from the crontask or main() after all parameters are set.
        Returns:
        int return code for command-line
        Throws:
        java.lang.Exception
        MXSystemException
        MXException
        java.rmi.RemoteException
      • main

        public static void main(java.lang.String[] args)
        main - ImportCLI entry point
        Parameters:
        args - commandline arguments
      • getDataVersion

        public java.lang.String getDataVersion(java.util.Properties props)
                                        throws MXSystemException
        Extracts the dataVersion out of the Properties.
        Parameters:
        props -
        Throws:
        MXSystemException - if there were errors during import processing
      • getDatabaseInstanceId

        public java.lang.String getDatabaseInstanceId(java.util.Properties props)
                                               throws MXSystemException
        Extracts the databaseInstanceId out of the Properties.
        Parameters:
        props -
        Throws:
        MXSystemException - if there were errors during import processing
      • getProperties

        public java.util.Properties getProperties(ImportClient client)
                                           throws MXSystemException
        Sends an HTTP request to SwKBT to get the properties via a GetVersion call
        Parameters:
        client -
        Throws:
        MXSystemException - if there were errors during import processing
      • getHost_

        public java.lang.String getHost_()
      • setHost_

        public void setHost_(java.lang.String host)
      • getPort_

        public int getPort_()
      • setPort_

        public void setPort_(int port)
      • getImportFile_

        public java.lang.String getImportFile_()
      • setImportFile_

        public void setImportFile_(java.lang.String importFile)
      • getRepositoryId_

        public java.lang.String getRepositoryId_()
      • setRepositoryId_

        public void setRepositoryId_(java.lang.String repositoryId)
      • getNumOfRetries_

        public int getNumOfRetries_()
      • setNumOfRetries_

        public void setNumOfRetries_(int numOfRetries)
      • getSecBetweenRetries_

        public int getSecBetweenRetries_()
      • setSecBetweenRetries_

        public void setSecBetweenRetries_(int secBetweenRetries)
      • getSourceDir_

        public java.lang.String getSourceDir_()
      • setSourceDir_

        public void setSourceDir_(java.lang.String sourceDir)