X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionModulesManager.java;h=06681747a8e2e3be3d4cfb39f0939236a7ffad72;hb=d4bd245768d2e2b3f94928b3db5a01380857e8b8;hp=4400a18f2fe62000aa796afa7966aabb56618359;hpb=a181e3d059185a9dc108e81f38c66f48f4e4aac8;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java index 4400a18f2..06681747a 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.argeo.slc.execution; import java.util.List; 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"; + + /** Unique launch module */ + public static String UNIQUE_LAUNCH_MODULE_PROPERTY = "slc.launch.module"; + + /** Unique launch flow */ + public static String UNIQUE_LAUNCH_FLOW_PROPERTY = "slc.launch.flow"; + /** @return a full fledged module descriptor. */ public ExecutionModuleDescriptor getExecutionModuleDescriptor( String moduleName, String version); @@ -34,16 +40,25 @@ public interface ExecutionModulesManager extends ModulesManager { */ public List 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); - /** Notify of a status update status of the {@link ExecutionProcess} */ - public void dispatchUpdateStatus(ExecutionProcess process, - String oldStatus, String newStatus); - - /** Notify that a step was added in an {@link ExecutionProcess} */ - public void dispatchAddStep(ExecutionProcess process, SlcExecutionStep step); + // /** Notify of a status update status of the {@link ExecutionProcess} */ +// public void dispatchUpdateStatus(ExecutionProcess process, +// String oldStatus, String newStatus); + // + // /** Notify that a step was added in an {@link ExecutionProcess} */ + // public void dispatchAddSteps(ExecutionProcess process, + // List steps); + // + // /** + // * Register a notifier which will be notified based on the provided + // * properties. + // */ + // public void registerProcessNotifier(ExecutionProcessNotifier notifier, + // Map properties); + // + // /** Unregisters a notifier */ + // public void unregisterProcessNotifier(ExecutionProcessNotifier notifier, + // Map properties); }