Class DownloadPyLibStep

All Implemented Interfaces:
LaunchStep

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

  • Method Details

    • getDescriptionKey

      public String getDescriptionKey()
      Specified by:
      getDescriptionKey in class BaseStep
    • run

      public void run() throws Exception
      Throws:
      Exception
    • download

      public static void download(AbstractLaunchStep step, String gwUrl, File toFile, int attempt) throws 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:
      Exception
    • unzipPyLib

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