@Path(value="pipelines")
public interface PipelineService
| Modifier and Type | Method and Description |
|---|---|
PipelineConfigsList |
getPipelineConfigs(Integer page,
Integer pageSize,
String sort,
boolean sortOrder)
Gets all the Pipeline Configurations registered in the service.
|
PipelineConfigsList |
getPipelineConfigs(String providerTypeName,
String providerTypeVersion,
Integer page,
Integer pageSize,
String sort,
boolean sortOrder)
Gets the Pipeline Configurations registered in the service and associated to the given provider type.
|
List<String> |
getPipelineNames(String providerTypeName,
String providerTypeVersion,
Integer page,
Integer pageSize,
String sort,
boolean sortOrder)
Gets the names of the Pipelines associated to the given provider type.
|
String |
newPipeline(PipelineConfig config)
Registers a new Pipeline with the provided configuration.
|
String |
newPipeline(PipelineConfig config,
ProviderType providerType)
Registers a new Pipeline with the provided configuration and associates it with the given provider type.
|
String |
runPipeline(String id,
Input input,
boolean async)
Run/Execute a registered Pipeline.
|
@GET @Produces(value="application/json") @Consumes(value="application/json") PipelineConfigsList getPipelineConfigs(@QueryParam(value="page") @DefaultValue(value="0") Integer page, @QueryParam(value="pageSize") @DefaultValue(value="10") Integer pageSize, @QueryParam(value="sort") String sort, @QueryParam(value="sortOrder") @DefaultValue(value="true") boolean sortOrder) throws BusinessException
BusinessExceptionPipelineConfigsList@GET @Path(value="providertype") @Produces(value="application/json") @Consumes(value="application/json") PipelineConfigsList getPipelineConfigs(@QueryParam(value="providerTypeName") String providerTypeName, @QueryParam(value="providerTypeVersion") String providerTypeVersion, @QueryParam(value="page") @DefaultValue(value="0") Integer page, @QueryParam(value="pageSize") @DefaultValue(value="10") Integer pageSize, @QueryParam(value="sort") String sort, @QueryParam(value="sortOrder") @DefaultValue(value="true") boolean sortOrder) throws BusinessException
providerTypeName - a provider type name registered in the system.providerTypeVersion - the provider type version corresponding to the provider type.BusinessExceptionPipelineConfigsList@GET @Path(value="providertype/names") @Produces(value="application/json") @Consumes(value="application/json") List<String> getPipelineNames(@QueryParam(value="providerTypeName") String providerTypeName, @QueryParam(value="providerTypeVersion") String providerTypeVersion, @QueryParam(value="page") @DefaultValue(value="0") Integer page, @QueryParam(value="pageSize") @DefaultValue(value="10") Integer pageSize, @QueryParam(value="sort") String sort, @QueryParam(value="sortOrder") @DefaultValue(value="true") boolean sortOrder) throws BusinessException
providerTypeName - a provider type name registered in the system.providerTypeVersion - the provider type version corresponding to the provider type.BusinessException@POST @Consumes(value="application/json") @Produces(value="application/json") String newPipeline(@NotNull PipelineConfig config) throws BusinessException
config - the pipeline configuration.BusinessExceptionPipelineConfig@POST @Path(value="providertype") @Consumes(value="application/json") @Produces(value="application/json") String newPipeline(@NotNull PipelineConfig config, @NotNull ProviderType providerType) throws BusinessException
config - the pipeline configuration.providerType - A provider type for associating the pipeline.BusinessExceptionPipelineConfig@POST
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{id}")
String runPipeline(@PathParam(value="id")
String id,
@NotNull
Input input,
@NotNull
boolean async)
throws BusinessException
id - of the pipeline to be executed.input - Input values to be used for the pipeline execution.async - establishes the execution mode. true for asynchronous execution, false for synchronous execution.BusinessExceptionCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.