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 TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) When active, this message describes what the step is currently doingintThe current progress (when running), from 0 to 100getState()The current state of this stepprotected abstract StringAbstraction to accommodate different methods of looking up bundle stringsbooleanIf this step can currently not calculate its progress, it is considered indeterminateabstract voidAbstraction to accommodate different logging methodsprotected static HttpURLConnectionnewConnection(String url) protected static HttpURLConnectionnewConnection(String url, int readTimeout) voidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) static <T> TrunLockedAction(LaunchContext context, AbstractLaunchStep step, AbstractLaunchStep.LockedAction<T> action) Runs an action only after obtaining the file lock on resources.lckvoidsetIndeterminate(boolean indeterminate) voidsetMessage(String message) Sets the message to this literal stringvoidsetMessagef(String bundleKey, Object... formatArgs) Sets the message after passing the key through the bundle, and the result through String.format()voidsetProgress(int progress) voidsetState(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, waitMethods 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:
login interfaceLaunchStep
-
getMessage
Description copied from interface:LaunchStepWhen active, this message describes what the step is currently doing- Specified by:
getMessagein interfaceLaunchStep
-
getProgress
public int getProgress()Description copied from interface:LaunchStepThe current progress (when running), from 0 to 100- Specified by:
getProgressin interfaceLaunchStep
-
getState
Description copied from interface:LaunchStepThe current state of this step- Specified by:
getStatein interfaceLaunchStep
-
isIndeterminate
public boolean isIndeterminate()Description copied from interface:LaunchStepIf this step can currently not calculate its progress, it is considered indeterminate- Specified by:
isIndeterminatein 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:
setMessagefin interfaceLaunchStep
-
setMessage
Sets the message to this literal string- Specified by:
setMessagein interfaceLaunchStep
-
setProgress
public void setProgress(int progress) - Specified by:
setProgressin interfaceLaunchStep
-
setState
Description copied from interface:LaunchStepSets the state of the step- Specified by:
setStatein interfaceLaunchStep
-
setIndeterminate
public void setIndeterminate(boolean indeterminate) - Specified by:
setIndeterminatein interfaceLaunchStep
-
firePropertyChange
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceLaunchStep
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceLaunchStep
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceLaunchStep
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceLaunchStep
-