Class DownloadPyLibStep

  • All Implemented Interfaces:
    LaunchStep

    public class DownloadPyLibStep
    extends BaseStep
    Downloads the zipped third-party Python scripts from the gateway
    • Constructor Detail

    • Method Detail

      • run

        public void run()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • download

        public static void download​(AbstractLaunchStep step,
                                    java.lang.String gwUrl,
                                    java.io.File toFile,
                                    int attempt)
                             throws java.lang.Exception
        Downloads 3rd party script modules from the gateway
        Parameters:
        step - The step originating the download. Nullable.
        gwUrl - The URL of the gateway
        toFile - The file to store the pylib.zip bytes in
        attempt - What attempt is this? Used for messages for the step, if any.
        Throws:
        java.lang.Exception
      • unzipPyLib

        public static void unzipPyLib​(java.io.File pylibZip,
                                      java.io.File outputDir,
                                      LaunchStep step,
                                      boolean force)
                               throws java.lang.Exception
        Unzips a pylib zip file to the gwcach/pylib folder and maintains the hash file
        Throws:
        java.lang.Exception