- Update the "getUrls" and "getTestUrls" endpoints to take the data from the workers, in http-request-parameters instead of the http-body.
- Fix tasksLimit-check. - Code cleanup.springify_project
parent
e2cc320baf
commit
d20fcf9cce
@ -1,44 +0,0 @@
|
||||
package eu.openaire.urls_controller.payloads.requests;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"workerId",
|
||||
"tasksLimit"
|
||||
})
|
||||
public class WorkerRequest {
|
||||
|
||||
@JsonProperty("workerId")
|
||||
private String workerId;
|
||||
|
||||
@JsonProperty("tasksLimit")
|
||||
private int tasksLimit;
|
||||
|
||||
public String getWorkerId() {
|
||||
return workerId;
|
||||
}
|
||||
|
||||
public void setWorkerId(String workerId) {
|
||||
this.workerId = workerId;
|
||||
}
|
||||
|
||||
public int getTasksLimit() {
|
||||
return tasksLimit;
|
||||
}
|
||||
|
||||
public void setTasksLimit(int tasksLimit) {
|
||||
this.tasksLimit = tasksLimit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "WorkerRequest{" +
|
||||
"id='" + workerId + '\'' +
|
||||
", tasksLimit=" + tasksLimit +
|
||||
'}';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue