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=034fc33df0fcd8f4f7fe568e04eba219309e7b82;hpb=edea18a8fda2e2201cb3ede7f7af13f610bf4acc;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 034fc33d..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,32 +25,42 @@ 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
-@Schema(name = "JobStatus", description = "Status for an EI job")
+@Schema(name = "consumer_job_status", description = "Status for an Information Job")
public class ConsumerJobStatus {
@Gson.TypeAdapters
- @Schema(name = "JobStatusValues", description = "Allowed values for EI 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-EI producer is able to deliver EI result for the EI job\n" //
- + "DISABLED: the A1-EI producer is unable to deliver EI result for the EI job";
+ 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 = "eiJobStatus", description = OPERATIONAL_STATE_DESCRIPTION, required = true)
- @SerializedName("eiJobStatus")
- @JsonProperty(value = "eiJobStatus", required = true)
+ @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;
}
}