Class ActivityService

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.activities.ActivityService
All Implemented Interfaces:
com.google.common.util.concurrent.Service

public class ActivityService extends com.google.common.util.concurrent.AbstractService
Yamcs service for executing activities.
  • Field Details

  • Constructor Details

    • ActivityService

      public ActivityService()
  • Method Details

    • getSpec

      public Spec getSpec()
    • init

      public void init(String yamcsInstance, YConfiguration config) throws InitException
      Throws:
      InitException
    • doStart

      protected void doStart()
      Specified by:
      doStart in class com.google.common.util.concurrent.AbstractService
    • getYamcsInstance

      public String getYamcsInstance()
    • getExecutors

      public Collection<ActivityExecutor> getExecutors()
    • getExecutor

      public ActivityExecutor getExecutor(String activity)
    • addActivityListener

      public void addActivityListener(ActivityListener listener)
    • removeActivityListener

      public void removeActivityListener(ActivityListener listener)
    • addActivityLogListener

      public void addActivityLogListener(ActivityLogListener listener)
    • removeActivityLogListener

      public void removeActivityLogListener(ActivityLogListener listener)
    • prepareActivity

      public Activity prepareActivity(String type, Map<String,Object> args, User user, String comment)
    • startActivity

      public void startActivity(Activity activity, User user)
    • cancelActivity

      public Activity cancelActivity(UUID id, User user)
    • completeManualActivity

      public Activity completeManualActivity(UUID id, String failureReason, User user)
    • getActivity

      public Activity getActivity(UUID id)
    • isStopRequested

      public boolean isStopRequested(Activity activity)
    • getOngoingActivities

      public List<Activity> getOngoingActivities()
    • logServiceInfo

      public void logServiceInfo(Activity activity, String message)
    • logServiceWarning

      public void logServiceWarning(Activity activity, String message)
    • logServiceError

      public void logServiceError(Activity activity, String message)
    • logActivityInfo

      public void logActivityInfo(Activity activity, String message)
    • logActivityWarning

      public void logActivityWarning(Activity activity, String message)
    • logActivityError

      public void logActivityError(Activity activity, String message)
    • getActivityDb

      public ActivityDb getActivityDb()
    • getActivityLogDb

      public ActivityLogDb getActivityLogDb()
    • doStop

      protected void doStop()
      Specified by:
      doStop in class com.google.common.util.concurrent.AbstractService