@Path(value="/worker/v1") public class WorkerResource extends ApplicationStatusResource
| Modifier and Type | Field and Description |
|---|---|
WorkerFactory |
WORKER_FACTORY
the worker factory
|
STATUS_URL, TENANTS_URL| Constructor and Description |
|---|
WorkerResource(PluginLoader pluginLoader)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getStepsList()
Get a list of running steps
|
javax.ws.rs.core.Response |
getStepStatus(String idAsync)
Get the status of a step
|
javax.ws.rs.core.Response |
modifyStep(String idAsync)
Modifying a step (pausing, resuming, prioritizing)
|
javax.ws.rs.core.Response |
submitStep(javax.ws.rs.core.HttpHeaders headers,
com.fasterxml.jackson.databind.JsonNode descriptionStepJson)
Submit a step to be launched
|
getServerTenants, statuspublic final WorkerFactory WORKER_FACTORY
public WorkerResource(PluginLoader pluginLoader)
pluginLoader - the plugin loader@Path(value="tasks") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getStepsList()
@Path(value="tasks")
@POST
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response submitStep(@Context
javax.ws.rs.core.HttpHeaders headers,
com.fasterxml.jackson.databind.JsonNode descriptionStepJson)
headers - http headerdescriptionStepJson - the description of the step as a {fr.gouv.vitam.worker.common.DescriptionStep}@Path(value="tasks/{id_async}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getStepStatus(@PathParam(value="id_async")
String idAsync)
idAsync - the id of the Async@Path(value="tasks/{id_async}")
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response modifyStep(@PathParam(value="id_async")
String idAsync)
idAsync - the id of the AsyncCopyright © 2018 Vitam. All rights reserved.