Class ProcessDistributorResource
- java.lang.Object
-
- fr.gouv.vitam.processing.distributor.rest.ProcessDistributorResource
-
@Path("/processing/v1/worker_family") public class ProcessDistributorResource extends java.lang.ObjectProcess Distributor Resource implementation
-
-
Constructor Summary
Constructors Constructor Description ProcessDistributorResource(IWorkerManager workerManager)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateWorkerFamily(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Add a new worker familyjavax.ws.rs.core.ResponsedeleteFamilyWorkers(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Delete workers for a specific familyjavax.ws.rs.core.ResponsedeleteWorkerFamily(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Delete a specific worker familyjavax.ws.rs.core.ResponsegetFamilyWorkersList(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily)Get the list of workers for a specific familyjavax.ws.rs.core.ResponsegetWorkerFamilies(javax.ws.rs.core.HttpHeaders headers)Get the list of worker familiesjavax.ws.rs.core.ResponsegetWorkerFamilyStatus(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily)Get the list of worker familiesjavax.ws.rs.core.ResponsegetWorkerStatus(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, java.lang.String idWorker)Get status of a specific workerjavax.ws.rs.core.ResponseputWorkerFamilies(javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode query)Interact with worker familiesjavax.ws.rs.core.ResponseregisterWorker(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, java.lang.String idWorker, WorkerBean workerInformation)Register a new workerjavax.ws.rs.core.ResponseunregisterWorker(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, java.lang.String idWorker)Unregister a specific worker familyjavax.ws.rs.core.ResponseupdateWorker(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, java.lang.String idWorker, com.fasterxml.jackson.databind.JsonNode query)Update a specific workerjavax.ws.rs.core.ResponseupdateWorkerFamily(javax.ws.rs.core.HttpHeaders headers, java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Update a specific worker family
-
-
-
Constructor Detail
-
ProcessDistributorResource
public ProcessDistributorResource(IWorkerManager workerManager)
Constructor- Parameters:
workerManager-
-
-
Method Detail
-
getWorkerFamilies
@GET @Produces("application/json") public javax.ws.rs.core.Response getWorkerFamilies(@Context javax.ws.rs.core.HttpHeaders headers)Get the list of worker families- Parameters:
headers- http header- Returns:
- Response NOT_IMPLEMENTED
-
putWorkerFamilies
@PUT @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response putWorkerFamilies(@Context javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode query)Interact with worker families- Parameters:
headers- http headerquery- the query- Returns:
- Response NOT_IMPLEMENTED
-
getWorkerFamilyStatus
@Path("/{id_family}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWorkerFamilyStatus(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily)Get the list of worker families- Parameters:
headers- http headeridFamily- the id of the family- Returns:
- Response NOT_IMPLEMENTED
-
createWorkerFamily
@Path("/{id_family}") @POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createWorkerFamily(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Add a new worker family- Parameters:
headers- http headeridFamily- the id of the familyquery- the query describing the worker family to be created- Returns:
- Response NOT_IMPLEMENTED
-
updateWorkerFamily
@Path("/{id_family}") @PUT @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateWorkerFamily(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Update a specific worker family- Parameters:
headers- http headeridFamily- the id of the familyquery- the query describing the worker family to be updated- Returns:
- Response NOT_IMPLEMENTED
-
deleteWorkerFamily
@Path("/{id_family}") @DELETE @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response deleteWorkerFamily(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Delete a specific worker family- Parameters:
headers- http headeridFamily- the id of the familyquery- the query describing the worker family to be deleted- Returns:
- Response NOT_IMPLEMENTED
-
getFamilyWorkersList
@Path("/{id_family}/workers") @GET @Produces("application/json") public javax.ws.rs.core.Response getFamilyWorkersList(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily)Get the list of workers for a specific family- Parameters:
headers- http headeridFamily- the id of the family- Returns:
- Response NOT_IMPLEMENTED
-
deleteFamilyWorkers
@Path("/{id_family}/workers") @DELETE @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response deleteFamilyWorkers(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, com.fasterxml.jackson.databind.JsonNode query)Delete workers for a specific family- Parameters:
headers- http headeridFamily- the id of the familyquery- the query describing the workers to be deleted- Returns:
- Response NOT_IMPLEMENTED
-
getWorkerStatus
@Path("/{id_family}/workers/{id_worker}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWorkerStatus(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, @PathParam("id_worker") java.lang.String idWorker)Get status of a specific worker- Parameters:
headers- http headeridFamily- the id of the familyidWorker- the id of the worker- Returns:
- Response NOT_IMPLEMENTED
-
registerWorker
@Path("/{id_family}/workers/{id_worker}") @POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response registerWorker(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, @PathParam("id_worker") java.lang.String idWorker, WorkerBean workerInformation)Register a new worker- Parameters:
headers- http headeridFamily- the id of the familyidWorker- the id of the workerworkerInformation- information describing the worker to be registered- Returns:
- Response the status of the registering
-
updateWorker
@Path("/{id_family}/workers/{id_worker}") @PUT @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateWorker(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, @PathParam("id_worker") java.lang.String idWorker, com.fasterxml.jackson.databind.JsonNode query)Update a specific worker- Parameters:
headers- http headeridFamily- the id of the familyidWorker- the id of the workerquery- the query describing the worker to be updated- Returns:
- Response NOT_IMPLEMENTED
-
unregisterWorker
@Path("/{id_family}/workers/{id_worker}") @DELETE @Produces("application/json") public javax.ws.rs.core.Response unregisterWorker(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_family") java.lang.String idFamily, @PathParam("id_worker") java.lang.String idWorker)Unregister a specific worker family- Parameters:
headers- http headeridFamily- the id of the familyidWorker- the id of the worker- Returns:
- Response the status of the unregistering
-
-