Klasse DUUIPipelineRequestHandler
java.lang.Object
org.texttechnologylab.duui.api.routes.pipelines.DUUIPipelineRequestHandler
A class that is responsible for handling incoming requests to the /pipelines path group.
- Autor:
- Cedric Borkowksi
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
deleteOne
(spark.Request request, spark.Response response) Delete one pipeline given its id.static String
findMany
(spark.Request request, spark.Response response) Retrieve one or more pipelines for a user.static String
findOne
(spark.Request request, spark.Response response) Retrieve one pipeline by its id.static String
insertOne
(spark.Request request, spark.Response response) Create and insert a new pipeline.static String
start
(spark.Request request, spark.Response response) Instantiate a pipeline for future use.static String
stop
(spark.Request request, spark.Response response) Shutdown a pipeline.static String
updateOne
(spark.Request request, spark.Response response) Update a pipeline given its id and a json object containing updates for fields.
-
Konstruktordetails
-
DUUIPipelineRequestHandler
public DUUIPipelineRequestHandler()
-
-
Methodendetails
-
findOne
Retrieve one pipeline by its id. SeeDUUIPipelineController.findOneById(String, boolean)
.- Gibt zurück:
- A Json String containing the matched pipeline.
-
findMany
Retrieve one or more pipelines for a user. The results can be sorted and filtered. SeeDUUIPipelineController.findMany(MongoDBFilters, boolean)
.- Gibt zurück:
- A Json String containing the matched pipelines.
-
insertOne
Create and insert a new pipeline. TODO: Add insert method toDUUIPipelineController
- Gibt zurück:
- the created pipeline or the error encountered.
-
updateOne
Update a pipeline given its id and a json object containing updates for fields. SeeDUUIPipelineController.updateOne(String, Document)
.- Gibt zurück:
- A Json String containing the matched pipeline.
-
deleteOne
Delete one pipeline given its id. SeeDUUIPipelineController.deleteOne(String)
.- Gibt zurück:
- A Json String containing the matched pipeline.
-
start
Instantiate a pipeline for future use. SeeDUUIPipelineController.instantiate(String)
- Gibt zurück:
- the status of the pipeline.
-
stop
Shutdown a pipeline. SeeDUUIPipelineController.shutdown(String)
.- Gibt zurück:
- the status of the pipeline.
-