]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/server/client/SlcServerHttpClient.java
@update:79; Simplify the execution of flows
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / server / client / SlcServerHttpClient.java
index 2113438f8c06566bdcef903c8b464053d9380958..6087d2a1b7f470d0f4e15098349892edf64f9bed 100644 (file)
@@ -1,9 +1,40 @@
 package org.argeo.slc.server.client;
 
+import java.util.List;
+import java.util.Map;
+
+import org.argeo.slc.execution.ExecutionModuleDescriptor;
+import org.argeo.slc.msg.ExecutionAnswer;
+import org.argeo.slc.process.RealizedFlow;
 import org.argeo.slc.runtime.SlcAgentDescriptor;
 
 /** Abstraction of the access to HTTP services of an SLC Server. */
 public interface SlcServerHttpClient extends HttpServicesClient {
+       public final static String LIST_AGENTS = "listAgents.service";
+       public final static String IS_SERVER_READY = "isServerReady.service";
+       public final static String NEW_SLC_EXECUTION = "newSlcExecution.service";
+       public final static String GET_MODULE_DESCRIPTOR = "getExecutionDescriptor.service";
+       public final static String LIST_MODULE_DESCRIPTORS = "listModulesDescriptors.service";
+       public final static String LIST_RESULTS = "listResults.service";
+
        /** Wait for one agent to be available. */
        public SlcAgentDescriptor waitForOneAgent();
+
+       /** Wait for the http server to be ready. */
+       public void waitForServerToBeReady();
+
+       /** Start an execution flow on the given agent. */
+       public ExecutionAnswer startFlow(String agentId, RealizedFlow realizedFlow);
+
+       /** Assume one agent and one version per module. */
+       public ExecutionAnswer startFlowDefault(String moduleName, String flowName,
+                       Map<String, Object> args);
+
+       /** List execution modules descriptors. */
+       public List<ExecutionModuleDescriptor> listModuleDescriptors(String agentId);
+
+       /** Retrieve a single execution module descriptot. */
+       public ExecutionModuleDescriptor getModuleDescriptor(String agentId,
+                       String moduleName, String version);
+
 }