public class JIPipeRunnableWorker extends SwingWorker<Throwable,Object> implements JIPipeProgressInfo.StatusUpdatedEventListener
JIPipeRunnable
into a Swing worker for multithreaded runsSwingWorker.StateValue
Constructor and Description |
---|
JIPipeRunnableWorker(JIPipeRunnable run,
boolean silent) |
Modifier and Type | Method and Description |
---|---|
protected Throwable |
doInBackground() |
protected void |
done() |
JIPipeRunnable.FinishedEventEmitter |
getFinishedEventEmitter() |
JIPipeRunnable.InterruptedEventEmitter |
getInterruptedEventEmitter() |
JIPipeRunnable.ProgressEventEmitter |
getProgressEventEmitter() |
JIPipeRunnable |
getRun() |
long |
getRuntimeMillis() |
void |
onProgressStatusUpdated(JIPipeProgressInfo.StatusUpdatedEvent event) |
protected void |
process(List<Object> chunks) |
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
public JIPipeRunnableWorker(JIPipeRunnable run, boolean silent)
run
- The executed runsilent
- if no stdout should be printedprotected Throwable doInBackground()
doInBackground
in class SwingWorker<Throwable,Object>
protected void process(List<Object> chunks)
process
in class SwingWorker<Throwable,Object>
protected void done()
done
in class SwingWorker<Throwable,Object>
public JIPipeRunnable.InterruptedEventEmitter getInterruptedEventEmitter()
public JIPipeRunnable.ProgressEventEmitter getProgressEventEmitter()
public long getRuntimeMillis()
public JIPipeRunnable.FinishedEventEmitter getFinishedEventEmitter()
public JIPipeRunnable getRun()
public void onProgressStatusUpdated(JIPipeProgressInfo.StatusUpdatedEvent event)
onProgressStatusUpdated
in interface JIPipeProgressInfo.StatusUpdatedEventListener
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.