Class ProcessDistributorResource

java.lang.Object
fr.gouv.vitam.processing.distributor.rest.ProcessDistributorResource

@Path("/processing/v1/worker_family") public class ProcessDistributorResource extends Object
  • Constructor Details

    • ProcessDistributorResource

      public ProcessDistributorResource(IWorkerManager workerManager)
      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 header
      idFamily - the id of the family
      idWorker - the id of the worker
      workerInformation - 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 header
      idFamily - the id of the family
      idWorker - the id of the worker
      Returns:
      Response the status of the unregistering