]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionModulesManager.java
Upgrade all classpaths to Java 11
[gpl/argeo-slc.git] / org.argeo.slc.api / src / org / argeo / slc / execution / ExecutionModulesManager.java
1 package org.argeo.slc.execution;
2
3 import java.util.List;
4
5 import org.argeo.slc.deploy.ModulesManager;
6
7 /** Provides access to the execution modules */
8 public interface ExecutionModulesManager extends ModulesManager {
9 /** Used to filter event notified to an execution notifier. */
10 public static String SLC_PROCESS_ID = "slc.process.id";
11
12 /** Unique launch module */
13 public static String UNIQUE_LAUNCH_MODULE_PROPERTY = "slc.launch.module";
14
15 /** Unique launch flow */
16 public static String UNIQUE_LAUNCH_FLOW_PROPERTY = "slc.launch.flow";
17
18 /** @return a full fledged module descriptor. */
19 public ExecutionModuleDescriptor getExecutionModuleDescriptor(
20 String moduleName, String version);
21
22 /**
23 * @return a list of minimal execution module descriptors (only the module
24 * meta data, not the flows)
25 */
26 public List<ExecutionModuleDescriptor> listExecutionModules();
27
28 /** Synchronously finds and executes an {@link ExecutionFlow}. */
29 public void execute(RealizedFlow realizedFlow);
30
31 // /** Notify of a status update status of the {@link ExecutionProcess} */
32 // public void dispatchUpdateStatus(ExecutionProcess process,
33 // String oldStatus, String newStatus);
34 //
35 // /** Notify that a step was added in an {@link ExecutionProcess} */
36 // public void dispatchAddSteps(ExecutionProcess process,
37 // List<ExecutionStep> steps);
38 //
39 // /**
40 // * Register a notifier which will be notified based on the provided
41 // * properties.
42 // */
43 // public void registerProcessNotifier(ExecutionProcessNotifier notifier,
44 // Map<String, String> properties);
45 //
46 // /** Unregisters a notifier */
47 // public void unregisterProcessNotifier(ExecutionProcessNotifier notifier,
48 // Map<String, String> properties);
49 }