Class AbstractLaunchStep
java.lang.Object
com.inductiveautomation.ignition.client.launch.steps.AbstractLaunchStep
- All Implemented Interfaces:
LaunchStep
- Direct Known Subclasses:
BaseStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.launch.LaunchStep
LaunchStep.StepState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) When active, this message describes what the step is currently doingint
The current progress (when running), from 0 to 100getState()
The current state of this stepprotected abstract String
Abstraction to accommodate different methods of looking up bundle stringsboolean
If this step can currently not calculate its progress, it is considered indeterminateabstract void
Abstraction to accommodate different logging methodsprotected static HttpURLConnection
newConnection
(String url) protected static HttpURLConnection
newConnection
(String url, int readTimeout) void
void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) static <T> T
runLockedAction
(LaunchContext context, AbstractLaunchStep step, AbstractLaunchStep.LockedAction<T> action) Runs an action only after obtaining the file lock on resources.lckvoid
setIndeterminate
(boolean indeterminate) void
setMessage
(String message) Sets the message to this literal stringvoid
setMessagef
(String bundleKey, Object... formatArgs) Sets the message after passing the key through the bundle, and the result through String.format()void
setProgress
(int progress) void
setState
(LaunchStep.StepState state) Sets the state of the stepMethods 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
getDescription, run
-
Field Details
-
changeSupport
-
-
Constructor Details
-
AbstractLaunchStep
public AbstractLaunchStep()
-
-
Method Details
-
newConnection
protected static HttpURLConnection newConnection(String url) throws IOException, MalformedURLException, ProtocolException -
newConnection
protected static HttpURLConnection newConnection(String url, int readTimeout) throws IOException, MalformedURLException, ProtocolException -
getString
Abstraction to accommodate different methods of looking up bundle strings -
log
Abstraction to accommodate different logging methods- Specified by:
log
in interfaceLaunchStep
-
getMessage
Description copied from interface:LaunchStep
When active, this message describes what the step is currently doing- Specified by:
getMessage
in interfaceLaunchStep
-
getProgress
public int getProgress()Description copied from interface:LaunchStep
The current progress (when running), from 0 to 100- Specified by:
getProgress
in interfaceLaunchStep
-
getState
Description copied from interface:LaunchStep
The current state of this step- Specified by:
getState
in interfaceLaunchStep
-
isIndeterminate
public boolean isIndeterminate()Description copied from interface:LaunchStep
If this step can currently not calculate its progress, it is considered indeterminate- Specified by:
isIndeterminate
in interfaceLaunchStep
-
runLockedAction
public static <T> T runLockedAction(LaunchContext context, AbstractLaunchStep step, AbstractLaunchStep.LockedAction<T> action) throws Exception Runs an action only after obtaining the file lock on resources.lck- Throws:
Exception
-
setMessagef
Sets the message after passing the key through the bundle, and the result through String.format()- Specified by:
setMessagef
in interfaceLaunchStep
-
setMessage
Sets the message to this literal string- Specified by:
setMessage
in interfaceLaunchStep
-
setProgress
public void setProgress(int progress) - Specified by:
setProgress
in interfaceLaunchStep
-
setState
Description copied from interface:LaunchStep
Sets the state of the step- Specified by:
setState
in interfaceLaunchStep
-
setIndeterminate
public void setIndeterminate(boolean indeterminate) - Specified by:
setIndeterminate
in interfaceLaunchStep
-
firePropertyChange
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceLaunchStep
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceLaunchStep
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceLaunchStep
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceLaunchStep
-