public class DownloadPyLibStep extends BaseStep
AbstractLaunchStep.LockedAction<T>LaunchStep.StepStatechangeSupport| Constructor and Description |
|---|
DownloadPyLibStep(LaunchContextImpl context) |
| Modifier and Type | Method and Description |
|---|---|
static void |
download(AbstractLaunchStep step,
java.lang.String gwUrl,
java.io.File toFile,
int attempt)
Downloads 3rd party script modules from the gateway
|
java.lang.String |
getDescriptionKey() |
void |
run() |
static void |
unzipPyLib(java.io.File pylibZip,
java.io.File outputDir,
LaunchStep step,
boolean force)
Unzips a pylib zip file to the gwcach/pylib folder and maintains the hash file
|
getDescription, getString, log, maybeWaitFor503, runLockedAction, waitForaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getMessage, getProgress, getState, isIndeterminate, newConnection, newConnection, removePropertyChangeListener, removePropertyChangeListener, runLockedAction, setIndeterminate, setMessage, setMessagef, setProgress, setStatepublic DownloadPyLibStep(LaunchContextImpl context)
public java.lang.String getDescriptionKey()
getDescriptionKey in class BaseSteppublic void run()
throws java.lang.Exception
java.lang.Exceptionpublic static void download(AbstractLaunchStep step, java.lang.String gwUrl, java.io.File toFile, int attempt) throws java.lang.Exception
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.java.lang.Exceptionpublic static void unzipPyLib(java.io.File pylibZip,
java.io.File outputDir,
LaunchStep step,
boolean force)
throws java.lang.Exception
java.lang.Exception