Class ProcessDistributorResource
java.lang.Object
fr.gouv.vitam.processing.distributor.rest.ProcessDistributorResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
registerWorker
(javax.ws.rs.core.HttpHeaders headers, String idFamily, String idWorker, WorkerBean workerInformation) Register a new workerjavax.ws.rs.core.Response
unregisterWorker
(javax.ws.rs.core.HttpHeaders headers, String idFamily, String idWorker) Unregister a specific worker family
-
Constructor Details
-
ProcessDistributorResource
Constructor- Parameters:
workerManager
- a WorkerManager instance
-
-
Method Details
-
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") String idFamily, @PathParam("id_worker") 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
-
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") String idFamily, @PathParam("id_worker") 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
-