Package org.yamcs.activities
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActivityListener
(ActivityListener listener) void
addActivityLogListener
(ActivityLogListener listener) cancelActivity
(UUID id, User user) completeManualActivity
(UUID id, String failureReason, User user) protected void
doStart()
protected void
doStop()
getActivity
(UUID id) getExecutor
(String activity) getSpec()
void
init
(String yamcsInstance, YConfiguration config) boolean
isStopRequested
(Activity activity) void
logActivityError
(Activity activity, String message) void
logActivityInfo
(Activity activity, String message) void
logActivityWarning
(Activity activity, String message) void
logServiceError
(Activity activity, String message) void
logServiceInfo
(Activity activity, String message) void
logServiceWarning
(Activity activity, String message) void
removeActivityListener
(ActivityListener listener) void
removeActivityLogListener
(ActivityLogListener listener) void
startActivity
(Activity activity, User user) Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
-
Field Details
-
ACTIVITY_TYPE_MANUAL
- See Also:
-
-
Constructor Details
-
ActivityService
public ActivityService()
-
-
Method Details
-
getSpec
-
init
- Throws:
InitException
-
doStart
protected void doStart()- Specified by:
doStart
in classcom.google.common.util.concurrent.AbstractService
-
getYamcsInstance
-
getExecutors
-
getExecutor
-
addActivityListener
-
removeActivityListener
-
addActivityLogListener
-
removeActivityLogListener
-
prepareActivity
-
startActivity
-
cancelActivity
-
completeManualActivity
-
getActivity
-
isStopRequested
-
getOngoingActivities
-
logServiceInfo
-
logServiceWarning
-
logServiceError
-
logActivityInfo
-
logActivityWarning
-
logActivityError
-
getActivityDb
-
getActivityLogDb
-
doStop
protected void doStop()- Specified by:
doStop
in classcom.google.common.util.concurrent.AbstractService
-