Class DownloadPyLibStep
java.lang.Object
com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
com.inductiveautomation.ignition.client.launch.steps.BaseStep
com.inductiveautomation.ignition.client.launch.steps.DownloadPyLibStep
- All Implemented Interfaces:
LaunchStep
Downloads the zipped third-party Python scripts from the gateway
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
AbstractLaunchStep.LockedAction<T>
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.launch.LaunchStep
LaunchStep.StepState
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
changeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
download
(AbstractLaunchStep step, String gwUrl, File toFile, int attempt) Downloads 3rd party script modules from the gatewayvoid
run()
static void
unzipPyLib
(File pylibZip, File outputDir, LaunchStep step, boolean force) Unzips a pylib zip file to the gwcach/pylib folder and maintains the hash fileMethods inherited from class com.inductiveautomation.ignition.client.launch.steps.BaseStep
getDescription, getString, log, maybeWaitFor503, restartClient, runLockedAction, waitFor
Methods inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getMessage, getProgress, getState, isIndeterminate, newConnection, newConnection, removePropertyChangeListener, removePropertyChangeListener, runLockedAction, setIndeterminate, setMessage, setMessagef, setProgress, setState
-
Constructor Details
-
DownloadPyLibStep
-
-
Method Details
-
getDescriptionKey
- Specified by:
getDescriptionKey
in classBaseStep
-
run
- 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 gatewaytoFile
- The file to store the pylib.zip bytes inattempt
- 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
-