Class PipelineLauncher

java.lang.Object
javax.swing.SwingWorker<java.lang.Boolean,​mgui.pipelines.PipelineLauncher.TaskEvent>
mgui.pipelines.PipelineLauncher
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Boolean>, java.util.concurrent.RunnableFuture<java.lang.Boolean>, DynamicPipelineListener

public class PipelineLauncher
extends javax.swing.SwingWorker<java.lang.Boolean,​mgui.pipelines.PipelineLauncher.TaskEvent>
implements DynamicPipelineListener
A launcher for an InterfacePipeline object. Creates and runs its own thread and then calls InterfacePipeline.launch, which blocks until the pipeline has finished.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

  • Method Details

    • addDynamicListener

      public void addDynamicListener​(DynamicPipelineListener listener)
    • removeDynamicListener

      public void removeDynamicListener​(DynamicPipelineListener listener)
    • doInBackground

      protected java.lang.Boolean doInBackground() throws java.lang.Exception
      Specified by:
      doInBackground in class javax.swing.SwingWorker<java.lang.Boolean,​mgui.pipelines.PipelineLauncher.TaskEvent>
      Throws:
      java.lang.Exception
    • done

      protected void done()
      Overrides:
      done in class javax.swing.SwingWorker<java.lang.Boolean,​mgui.pipelines.PipelineLauncher.TaskEvent>
    • process

      protected void process​(java.util.List<mgui.pipelines.PipelineLauncher.TaskEvent> events)
      Overrides:
      process in class javax.swing.SwingWorker<java.lang.Boolean,​mgui.pipelines.PipelineLauncher.TaskEvent>
    • firePipelineTaskLaunched

      protected void firePipelineTaskLaunched​(mgui.pipelines.PipelineLauncher.TaskEvent event)
    • firePipelineTaskTerminated

      protected void firePipelineTaskTerminated​(mgui.pipelines.PipelineLauncher.TaskEvent event)
    • firePipelineTaskUpdated

      protected void firePipelineTaskUpdated​(mgui.pipelines.PipelineLauncher.TaskEvent event)
    • firePipelineLaunched

      protected void firePipelineLaunched​(mgui.pipelines.PipelineLauncher.TaskEvent event)
    • firePipelineTerminated

      protected void firePipelineTerminated​(mgui.pipelines.PipelineLauncher.TaskEvent event)
    • pipelineLaunched

      public void pipelineLaunched​(DynamicPipelineEvent event)
      Description copied from interface: DynamicPipelineListener
      Called when a pipeline is initially launched
      Specified by:
      pipelineLaunched in interface DynamicPipelineListener
    • pipelineTerminated

      public void pipelineTerminated​(DynamicPipelineEvent event)
      Description copied from interface: DynamicPipelineListener
      Called when a pipeline is terminated. The state of the pipeline can be queried via the StaticPipelineEvent object.
      Specified by:
      pipelineTerminated in interface DynamicPipelineListener
    • pipelineTaskTerminated

      public void pipelineTaskTerminated​(DynamicPipelineEvent event, PipelineTask task)
      Description copied from interface: DynamicPipelineListener
      Called when a pipeline task is terminated. The state of the pipeline can be queried via the StaticPipelineEvent object.
      Specified by:
      pipelineTaskTerminated in interface DynamicPipelineListener
    • pipelineTaskUpdated

      public void pipelineTaskUpdated​(DynamicPipelineEvent event, PipelineTask task)
      Description copied from interface: DynamicPipelineListener
      Called when a pipeline task requests to publish an update.
      Specified by:
      pipelineTaskUpdated in interface DynamicPipelineListener
    • pipelineTaskLaunched

      public void pipelineTaskLaunched​(DynamicPipelineEvent event, PipelineTask task)
      Description copied from interface: DynamicPipelineListener
      Called when a pipeline task is launched.
      Specified by:
      pipelineTaskLaunched in interface DynamicPipelineListener