X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2Fr1consumer%2FConsumerJobStatus.java;h=3e8bb88422691a6bbc5c76f78d1540f0ac951a7b;hb=refs%2Fchanges%2F02%2F6702%2F2;hp=d40ecda568011818e1ec953aaf8fcd3c292a205a;hpb=8fd8e9fc86a24be49d61841e381423120a41296d;p=nonrtric.git
diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/r1consumer/ConsumerJobStatus.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/r1consumer/ConsumerJobStatus.java
index d40ecda5..3e8bb884 100644
--- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/r1consumer/ConsumerJobStatus.java
+++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/r1consumer/ConsumerJobStatus.java
@@ -25,6 +25,8 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
+import java.util.Collection;
+
import org.immutables.gson.Gson;
@Gson.TypeAdapters
@@ -32,25 +34,33 @@ import org.immutables.gson.Gson;
public class ConsumerJobStatus {
@Gson.TypeAdapters
- @Schema(name = "info_job_status_values", description = "Allowed values for Information Job status")
+ @Schema(name = "info_job_status_values", description = OPERATIONAL_STATE_DESCRIPTION)
public enum InfoJobStatusValues {
ENABLED, DISABLED
}
- private static final String OPERATIONAL_STATE_DESCRIPTION = "values:\n" //
- + "ENABLED: the A1-Information producer is able to deliver result for the Information Job\n" //
+ private static final String OPERATIONAL_STATE_DESCRIPTION = "Allowed values:
" //
+ + "ENABLED: the A1-Information producer is able to deliver result for the Information Job
" //
+ "DISABLED: the A1-Information producer is unable to deliver result for the Information Job";
+ private static final String PRODUCERS_DESCRIPTION = "An array of all registered Information Producer Identifiers.";
+
@Schema(name = "info_job_status", description = OPERATIONAL_STATE_DESCRIPTION, required = true)
@SerializedName("info_job_status")
@JsonProperty(value = "info_job_status", required = true)
public InfoJobStatusValues state;
+ @Schema(name = "producers", description = PRODUCERS_DESCRIPTION, required = true)
+ @SerializedName("producers")
+ @JsonProperty(value = "producers", required = true)
+ public Collection producers;
+
public ConsumerJobStatus() {
}
- public ConsumerJobStatus(InfoJobStatusValues state) {
+ public ConsumerJobStatus(InfoJobStatusValues state, Collection producers) {
this.state = state;
+ this.producers = producers;
}
}