Package tethys.tasks

Class TethysTask

Direct Known Subclasses:
ExportCalibrationTask, ExportDataBlockTask, ExportDeploymentsTask

public abstract class TethysTask extends OfflineTask
Base class for offline tasks in Tethys. These probably won't be made available as tasks in Tethys, but will be picked up by the batch processor which can then execute them across multiple datasets.

These will have to be set up with their own complete sets of parameters, i.e. all the information that was normally going into the export Wizards, so that they can be fully automated from the batch processor.

Author:
dg50
  • Field Details

    • whyNot

      protected String whyNot
  • Constructor Details

  • Method Details

    • canRun

      public boolean canRun()
      Check the Tethys server, reset the whyNot flag to null, return false is server not OK. Expect to override / extend in concrete export tasks.
      Overrides:
      canRun in class OfflineTask
      Returns:
      true if it's possible to run the task.
    • whyNot

      public String whyNot()
      Description copied from class: OfflineTask
      If a task can't run, try to return a string to say why not.
      Overrides:
      whyNot in class OfflineTask
      Returns:
      text reason as to why task can't run (such as missing data).
    • getTethysControl

      public TethysControl getTethysControl()
      Returns:
      the tethysControl
    • getTethysTaskManager

      public TethysTaskManager getTethysTaskManager()
      Returns:
      the tethysTaskManager