Class BaseStep
- java.lang.Object
-
- com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
-
- com.inductiveautomation.ignition.client.launch.steps.BaseStep
-
- All Implemented Interfaces:
LaunchStep
- Direct Known Subclasses:
CacheStep,CheckManifestStep,ConnectStep,DownloadJarsStep,DownloadPyLibStep,DownloadRuntimeStep,DownloadTranslationsStep,StartupStep,TestStep
public abstract class BaseStep extends AbstractLaunchStep
-
-
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 Modifier and Type Field Description protected LaunchContextImplcontext-
Fields inherited from class com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
changeSupport
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseStep(LaunchContextImpl context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Describe this step's purposeabstract java.lang.StringgetDescriptionKey()protected java.lang.StringgetString(java.lang.String key)Abstraction to accommodate different methods of looking up bundle stringsvoidlog(java.lang.String message, java.lang.Object... args)Abstraction to accommodate different logging methodsprotected voidmaybeWaitFor503(java.lang.Exception ex)Checks to see if the exception happens to be an HttpResponseException with responseCode==503.protected <T> TrunLockedAction(AbstractLaunchStep.LockedAction<T> action)protected voidwaitFor(int secs)Waits for a number of seconds, updating the progress bar appropriately-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.client.launch.LaunchStep
run
-
-
-
-
Field Detail
-
context
protected LaunchContextImpl context
-
-
Constructor Detail
-
BaseStep
protected BaseStep(LaunchContextImpl context)
-
-
Method Detail
-
runLockedAction
protected <T> T runLockedAction(AbstractLaunchStep.LockedAction<T> action) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDescription
public java.lang.String getDescription()
Description copied from interface:LaunchStepDescribe this step's purpose
-
getString
protected java.lang.String getString(java.lang.String key)
Description copied from class:AbstractLaunchStepAbstraction to accommodate different methods of looking up bundle strings- Specified by:
getStringin classAbstractLaunchStep
-
log
public void log(java.lang.String message, java.lang.Object... args)Description copied from class:AbstractLaunchStepAbstraction to accommodate different logging methods- Specified by:
login interfaceLaunchStep- Specified by:
login classAbstractLaunchStep
-
getDescriptionKey
public abstract java.lang.String getDescriptionKey()
-
waitFor
protected void waitFor(int secs) throws java.lang.ExceptionWaits for a number of seconds, updating the progress bar appropriately- Throws:
java.lang.Exception
-
maybeWaitFor503
protected void maybeWaitFor503(java.lang.Exception ex) throws java.lang.ExceptionChecks to see if the exception happens to be an HttpResponseException with responseCode==503. If so, waits for 10 seconds while setting the message to the "ServiceUnavailable" message.- Throws:
java.lang.Exception
-
-