@Path(value="/processing/v1/worker_family") public class ProcessDistributorResource extends Object
| Constructor and Description |
|---|
ProcessDistributorResource(IWorkerManager workerManager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createWorkerFamily(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
Add a new worker family
|
javax.ws.rs.core.Response |
deleteFamilyWorkers(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
Delete workers for a specific family
|
javax.ws.rs.core.Response |
deleteWorkerFamily(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
Delete a specific worker family
|
javax.ws.rs.core.Response |
getFamilyWorkersList(javax.ws.rs.core.HttpHeaders headers,
String idFamily)
Get the list of workers for a specific family
|
javax.ws.rs.core.Response |
getWorkerFamilies(javax.ws.rs.core.HttpHeaders headers)
Get the list of worker families
|
javax.ws.rs.core.Response |
getWorkerFamilyStatus(javax.ws.rs.core.HttpHeaders headers,
String idFamily)
Get the list of worker families
|
javax.ws.rs.core.Response |
getWorkerStatus(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
String idWorker)
Get status of a specific worker
|
javax.ws.rs.core.Response |
putWorkerFamilies(javax.ws.rs.core.HttpHeaders headers,
com.fasterxml.jackson.databind.JsonNode query)
Interact with worker families
|
javax.ws.rs.core.Response |
registerWorker(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
String idWorker,
String workerInformation)
Register a new worker
|
javax.ws.rs.core.Response |
unregisterWorker(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
String idWorker)
Unregister a specific worker family
|
javax.ws.rs.core.Response |
updateWorker(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
String idWorker,
com.fasterxml.jackson.databind.JsonNode query)
Update a specific worker
|
javax.ws.rs.core.Response |
updateWorkerFamily(javax.ws.rs.core.HttpHeaders headers,
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
Update a specific worker family
|
public ProcessDistributorResource(IWorkerManager workerManager)
workerManager - @GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getWorkerFamilies(@Context
javax.ws.rs.core.HttpHeaders headers)
headers - http header@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response putWorkerFamilies(@Context
javax.ws.rs.core.HttpHeaders headers,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headerquery - the query@Path(value="/{id_family}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getWorkerFamilyStatus(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily)
headers - http headeridFamily - the id of the family@Path(value="/{id_family}")
@POST
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response createWorkerFamily(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headeridFamily - the id of the familyquery - the query describing the worker family to be created@Path(value="/{id_family}")
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updateWorkerFamily(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headeridFamily - the id of the familyquery - the query describing the worker family to be updated@Path(value="/{id_family}")
@DELETE
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response deleteWorkerFamily(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headeridFamily - the id of the familyquery - the query describing the worker family to be deleted@Path(value="/{id_family}/workers")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getFamilyWorkersList(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily)
headers - http headeridFamily - the id of the family@Path(value="/{id_family}/workers")
@DELETE
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response deleteFamilyWorkers(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headeridFamily - the id of the familyquery - the query describing the workers to be deleted@Path(value="/{id_family}/workers/{id_worker}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getWorkerStatus(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
@PathParam(value="id_worker")
String idWorker)
headers - http headeridFamily - the id of the familyidWorker - the id of the worker@Path(value="/{id_family}/workers/{id_worker}")
@POST
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response registerWorker(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
@PathParam(value="id_worker")
String idWorker,
String workerInformation)
headers - http headeridFamily - the id of the familyidWorker - the id of the workerworkerInformation - information describing the worker to be registered@Path(value="/{id_family}/workers/{id_worker}")
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updateWorker(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
@PathParam(value="id_worker")
String idWorker,
com.fasterxml.jackson.databind.JsonNode query)
headers - http headeridFamily - the id of the familyidWorker - the id of the workerquery - the query describing the worker to be updated@Path(value="/{id_family}/workers/{id_worker}")
@DELETE
@Produces(value="application/json")
public javax.ws.rs.core.Response unregisterWorker(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id_family")
String idFamily,
@PathParam(value="id_worker")
String idWorker)
headers - http headeridFamily - the id of the familyidWorker - the id of the workerCopyright © 2018 Vitam. All rights reserved.