java.lang.Object
org.yamcs.activities.CommandExecutor
- All Implemented Interfaces:
ActivityExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExecution(Activity activity, User caller) Create an executable activity with the provided argumentsdescribeActivity(Map<String, Object> args) Return a short (one-line) descriptive text for an activity that would have the specified args.Specify the allowed arguments of an activityThe activity recognized by this executorShort imperative description of this type of activity.UI-friendly display name for this type of activitygetIcon()Icon hint for UI purpose.getSpec()Specify the options for this executor.voidinit(ActivityService activityService, YConfiguration options) Initialize this executor.
-
Constructor Details
-
CommandExecutor
public CommandExecutor()
-
-
Method Details
-
getActivityType
Description copied from interface:ActivityExecutorThe activity recognized by this executor- Specified by:
getActivityTypein interfaceActivityExecutor
-
getDisplayName
Description copied from interface:ActivityExecutorUI-friendly display name for this type of activity- Specified by:
getDisplayNamein interfaceActivityExecutor
-
getDescription
Description copied from interface:ActivityExecutorShort imperative description of this type of activity.- Specified by:
getDescriptionin interfaceActivityExecutor
-
getIcon
Description copied from interface:ActivityExecutorIcon hint for UI purpose. This should be a name present in Material Icons.- Specified by:
getIconin interfaceActivityExecutor
-
getSpec
Description copied from interface:ActivityExecutorSpecify the options for this executor.The name of this spec, is where the options are to be defined as part of the
ActivityServiceconfiguration.For example, the name for
ScriptExecutorisscriptExecution. It is suggested to use the same naming strategy.- Specified by:
getSpecin interfaceActivityExecutor
-
init
Description copied from interface:ActivityExecutorInitialize this executor. Called when the activity service starts.- Specified by:
initin interfaceActivityExecutor
-
getActivitySpec
Description copied from interface:ActivityExecutorSpecify the allowed arguments of an activity- Specified by:
getActivitySpecin interfaceActivityExecutor
-
describeActivity
Description copied from interface:ActivityExecutorReturn a short (one-line) descriptive text for an activity that would have the specified args.- Specified by:
describeActivityin interfaceActivityExecutor
-
createExecution
Description copied from interface:ActivityExecutorCreate an executable activity with the provided arguments- Specified by:
createExecutionin interfaceActivityExecutor- Parameters:
activity- the activity to executecaller- the calling user- Throws:
ValidationException
-