]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java
Implement kill and process progress
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / execution / ExecutionModulesManager.java
index 4400a18f2fe62000aa796afa7966aabb56618359..3f927a345e9027d33be59b6d463ccee6863c47ee 100644 (file)
 package org.argeo.slc.execution;
 
 import java.util.List;
+import java.util.Map;
 
 import org.argeo.slc.deploy.ModulesManager;
 import org.argeo.slc.process.RealizedFlow;
-import org.argeo.slc.process.SlcExecutionStep;
 
 /** Provides access to the execution modules */
 public interface ExecutionModulesManager extends ModulesManager {
+       /** Used to filter event notified to an execution notifier. */
+       public static String SLC_PROCESS_ID = "slc.process.id";
+
        /** @return a full fledged module descriptor. */
        public ExecutionModuleDescriptor getExecutionModuleDescriptor(
                        String moduleName, String version);
@@ -34,9 +37,6 @@ public interface ExecutionModulesManager extends ModulesManager {
         */
        public List<ExecutionModuleDescriptor> listExecutionModules();
 
-       /** The thread group to which all process threads will belong. */
-       public ThreadGroup getProcessesThreadGroup();
-
        /** Synchronously finds and executes an {@link ExecutionFlow}. */
        public void execute(RealizedFlow realizedFlow);
 
@@ -45,5 +45,17 @@ public interface ExecutionModulesManager extends ModulesManager {
                        String oldStatus, String newStatus);
 
        /** Notify that a step was added in an {@link ExecutionProcess} */
-       public void dispatchAddStep(ExecutionProcess process, SlcExecutionStep step);
+       public void dispatchAddSteps(ExecutionProcess process,
+                       List<ExecutionStep> steps);
+
+       /**
+        * Register a notifier which will be notified based on the provided
+        * properties.
+        */
+       public void registerProcessNotifier(ExecutionProcessNotifier notifier,
+                       Map<String, String> properties);
+
+       /** Unregisters a notifier */
+       public void unregisterProcessNotifier(ExecutionProcessNotifier notifier,
+                       Map<String, String> properties);
 }