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 SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStepAbstractLaunchStep.LockedAction<T>Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.launch.LaunchStepLaunchStep.StepState
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStepchangeSupport
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddownload(AbstractLaunchStep step, String gwUrl, File toFile, int attempt) Downloads 3rd party script modules from the gatewayvoidrun()static voidunzipPyLib(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.BaseStepgetDescription, getString, log, maybeWaitFor503, restartClient, runLockedAction, waitForMethods inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStepaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getMessage, getProgress, getState, isIndeterminate, newConnection, newConnection, removePropertyChangeListener, removePropertyChangeListener, runLockedAction, setIndeterminate, setMessage, setMessagef, setProgress, setState
- 
Constructor Details- 
DownloadPyLibStep
 
- 
- 
Method Details- 
getDescriptionKey- Specified by:
- getDescriptionKeyin class- BaseStep
 
- 
run- Throws:
- Exception
 
- 
downloadpublic 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
 
- 
unzipPyLibpublic 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
 
 
-