public class DownloadPyLibStep extends BaseStep
AbstractLaunchStep.LockedAction<T>
LaunchStep.StepState
context, icon
changeSupport
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, getIcon, getString, log, maybeWaitFor503, runLockedAction, waitFor
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getMessage, getProgress, getState, isIndeterminate, newConnection, newConnection, removePropertyChangeListener, removePropertyChangeListener, runLockedAction, setIndeterminate, setMessage, setMessagef, setProgress, setState
public DownloadPyLibStep(LaunchContextImpl context)
public java.lang.String getDescriptionKey()
getDescriptionKey
in class BaseStep
public void run() throws java.lang.Exception
java.lang.Exception
public 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.Exception
public static void unzipPyLib(java.io.File pylibZip, java.io.File outputDir, LaunchStep step, boolean force) throws java.lang.Exception
java.lang.Exception