Class OfflineTaskGroup.TaskGroupWorker

java.lang.Object
javax.swing.SwingWorker<Integer,TaskMonitorData>
offlineProcessing.OfflineTaskGroup.TaskGroupWorker
All Implemented Interfaces:
Runnable, Future<Integer>, RunnableFuture<Integer>, ViewLoadObserver
Enclosing class:
OfflineTaskGroup

public class OfflineTaskGroup.TaskGroupWorker extends SwingWorker<Integer,TaskMonitorData> implements ViewLoadObserver
Swing worker to do the actual work.
Author:
Doug Gillespie
  • Constructor Details

    • TaskGroupWorker

      public TaskGroupWorker()
  • Method Details

    • killWorker

      public void killWorker()
    • isInstantKill

      public boolean isInstantKill()
      Check whether the thread has been stopped.
      Returns:
      true if the thread has been stopped.
    • sayProgress

      public void sayProgress(int state, long loadStart, long loadEnd, long lastTime, int nLoaded)
      Description copied from interface: ViewLoadObserver
      Report progress back to the load observer
      Specified by:
      sayProgress in interface ViewLoadObserver
      Parameters:
      state - LoadQueueProgressData.STATE_LINKINGSUBTABLE, STATE_LOADING or STATE_DONE
      See Also:
    • cancelLoad

      public boolean cancelLoad()
      Description copied from interface: ViewLoadObserver
      Ask the load observer if loading should be stopped.
      Specified by:
      cancelLoad in interface ViewLoadObserver
      Returns: