X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionModulesManager.java;h=c1b9e47a3255714bd527e6823f6ddded53985063;hb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;hp=329145be8d01e4f1cfd54fe6178bc30d29e0216f;hpb=995d94b321ef6aba1cf2252b2087920294d525ce;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 329145be8..c1b9e47a3 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,14 +1,42 @@ +/* + * 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; +import org.argeo.slc.deploy.ModulesManager; +import org.argeo.slc.process.RealizedFlow; import org.argeo.slc.process.SlcExecution; -public interface ExecutionModulesManager { +/** 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 prepare and executes an {@link SlcExecution} */ public void process(SlcExecution slcExecution); + + /** Synchronously finds and executes an {@link ExecutionFlow}. */ + public void execute(RealizedFlow realizedFlow); }