]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgent.java
Implement kill and process progress
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / runtime / SlcAgent.java
index 44c8ccb810199739d3b12752caa2eddd8cb31d2a..b7afe2269b70539222f2546adf744d4962e5375b 100644 (file)
@@ -19,15 +19,26 @@ package org.argeo.slc.runtime;
 import java.util.List;
 
 import org.argeo.slc.execution.ExecutionModuleDescriptor;
+import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.process.SlcExecution;
 
 /** A local agent, able to run SLC Execution locally. */
 public interface SlcAgent {
+       /** Agent unique identifier */
+       public String getAgentUuid();
+
+       /** Execute / take part to this process */
+       public void process(ExecutionProcess process);
+
+       /** Kills this process */
+       public void kill(ExecutionProcess process);
+
        public ExecutionModuleDescriptor getExecutionModuleDescriptor(
                        String moduleName, String version);
 
        public List<ExecutionModuleDescriptor> listExecutionModuleDescriptors();
 
+       /** @deprecated Use {@link #process(ExecutionProcess)} instead. */
        public void runSlcExecution(SlcExecution slcExecution);
 
        /** @return true if still alive. */