Class ActivityExecution

java.lang.Object
org.yamcs.activities.ActivityExecution
All Implemented Interfaces:
Callable<Void>
Direct Known Subclasses:
CommandExecution, CommandStackExecution, ScriptExecution

public abstract class ActivityExecution extends Object implements Callable<Void>
  • Field Details

  • Constructor Details

  • Method Details

    • call

      public Void call() throws Exception
      Specified by:
      call in interface Callable<Void>
      Throws:
      Exception
    • run

      public abstract Void run() throws Exception
      Throws:
      Exception
    • stop

      public abstract void stop() throws Exception
      Called when an activity stop is requested.

      Implementations are expected to finish in a timely manner.

      Throws:
      Exception
    • getStart

      public Instant getStart()
    • getStop

      public Instant getStop()
    • logServiceInfo

      public void logServiceInfo(String message)
    • logServiceWarning

      public void logServiceWarning(String message)
    • logServiceError

      public void logServiceError(String message)
    • logActivityInfo

      public void logActivityInfo(String message)
    • logActivityWarning

      public void logActivityWarning(String message)
    • logActivityError

      public void logActivityError(String message)