1 package org
.argeo
.slc
.server
.client
;
6 import org
.argeo
.slc
.execution
.ExecutionModuleDescriptor
;
7 import org
.argeo
.slc
.msg
.ExecutionAnswer
;
8 import org
.argeo
.slc
.process
.RealizedFlow
;
9 import org
.argeo
.slc
.runtime
.SlcAgentDescriptor
;
11 /** Abstraction of the access to HTTP services of an SLC Server. */
12 public interface SlcServerHttpClient
extends HttpServicesClient
{
13 public final static String LIST_AGENTS
= "listAgents.service";
14 public final static String IS_SERVER_READY
= "isServerReady.service";
15 public final static String NEW_SLC_EXECUTION
= "newSlcExecution.service";
16 public final static String GET_MODULE_DESCRIPTOR
= "getExecutionDescriptor.service";
17 public final static String LIST_MODULE_DESCRIPTORS
= "listModulesDescriptors.service";
18 public final static String LIST_RESULTS
= "listResults.service";
20 /** Wait for one agent to be available. */
21 public SlcAgentDescriptor
waitForOneAgent();
23 /** Wait for the http server to be ready. */
24 public void waitForServerToBeReady();
26 /** Start an execution flow on the given agent. */
27 public ExecutionAnswer
startFlow(String agentId
, RealizedFlow realizedFlow
);
29 /** Assume one agent and one version per module. */
30 public ExecutionAnswer
startFlowDefault(String moduleName
, String flowName
,
31 Map
<String
, Object
> args
);
33 /** List execution modules descriptors. */
34 public List
<ExecutionModuleDescriptor
> listModuleDescriptors(String agentId
);
36 /** Retrieve a single execution module descriptot. */
37 public ExecutionModuleDescriptor
getModuleDescriptor(String agentId
,
38 String moduleName
, String version
);