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=26890ad05a8c1870dce466c7d4cdf8863c140b1c;hb=f3e477b3048c639451df616cfa61564eae11efbb;hp=8182f889d4d5b006728016038ef704b8eae6891d;hpb=4810532845c8a54c04a850c7db3a9fe00e8ebc6a;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 8182f889d..26890ad05 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,10 +1,53 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.execution; import java.util.List; -public interface ExecutionModulesManager { +import org.argeo.slc.deploy.ModulesManager; +import org.argeo.slc.process.RealizedFlow; +import org.argeo.slc.process.SlcExecution; +import org.argeo.slc.process.SlcExecutionStep; + +/** Provides access to the execution modules */ +public interface ExecutionModulesManager extends ModulesManager { + /** @return a full fledged module descriptor. */ public ExecutionModuleDescriptor getExecutionModuleDescriptor( String moduleName, String version); - public List listExecutionModules(); + /** + * @return a list of minimal execution module descriptors (only the module + * meta data, not the flows) + */ + public List listExecutionModules(); + + /** Asynchronously prepares and executes an {@link SlcExecution} */ + public void process(SlcExecution slcExecution); + + /** 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 SlcExecution} */ + public void dispatchUpdateStatus(SlcExecution slcExecution, + String oldStatus, String newStatus); + + /** Notify that a step was added in an {@link SlcExecution} */ + public void dispatchAddStep(SlcExecution slcExecution, SlcExecutionStep step); }