X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2FStatusController.java;h=68b654e4c26744c3d0a33bc09915eced0e614b86;hb=8fd8e9fc86a24be49d61841e381423120a41296d;hp=e823a9399b084e393258c70f78df68f7ebc0206d;hpb=99bcb01d872b2166ef3b2cb5cf04d346043b5a31;p=nonrtric.git diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/StatusController.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/StatusController.java index e823a939..68b654e4 100644 --- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/StatusController.java +++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/StatusController.java @@ -31,9 +31,9 @@ import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.tags.Tag; import org.immutables.gson.Gson; -import org.oransc.enrichment.repository.EiJobs; -import org.oransc.enrichment.repository.EiProducers; -import org.oransc.enrichment.repository.EiTypes; +import org.oransc.enrichment.repository.InfoJobs; +import org.oransc.enrichment.repository.InfoProducers; +import org.oransc.enrichment.repository.InfoTypes; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -46,17 +46,17 @@ import reactor.core.publisher.Mono; @Tag(name = StatusController.API_NAME) public class StatusController { - public static final String API_NAME = "EI Service status"; + public static final String API_NAME = "Service status"; public static final String API_DESCRIPTION = "API for monitoring of the service"; @Autowired - private EiJobs eiJobs; + private InfoJobs infoJobs; @Autowired - private EiTypes eiTypes; + private InfoTypes infoTypes; @Autowired - private EiProducers eiProducers; + private InfoProducers infoProducers; @Gson.TypeAdapters @Schema(name = "status_info") @@ -66,22 +66,22 @@ public class StatusController { @JsonProperty(value = "status", required = true) public final String status; - @Schema(name = "no_of_producers", description = "Number of EI producers") + @Schema(name = "no_of_producers", description = "Number of Information Producers") @SerializedName("no_of_producers") @JsonProperty(value = "no_of_producers", required = true) public final int noOfProducers; - @Schema(name = "no_of_types", description = "Number of EI types") + @Schema(name = "no_of_types", description = "Number of Information Types") @SerializedName("no_of_types") @JsonProperty(value = "no_of_types", required = true) public final int noOfTypes; - @Schema(name = "no_of_jobs", description = "Number of EI jobs") + @Schema(name = "no_of_jobs", description = "Number of Information Jobs") @SerializedName("no_of_jobs") @JsonProperty(value = "no_of_jobs", required = true) public final int noOfJobs; - public StatusInfo(String status, EiProducers producers, EiTypes types, EiJobs jobs) { + public StatusInfo(String status, InfoProducers producers, InfoTypes types, InfoJobs jobs) { this.status = status; this.noOfJobs = jobs.size(); this.noOfProducers = producers.size(); @@ -99,7 +99,7 @@ public class StatusController { content = @Content(schema = @Schema(implementation = StatusInfo.class))) // }) public Mono> getStatus() { - StatusInfo info = new StatusInfo("hunky dory", this.eiProducers, this.eiTypes, this.eiJobs); + StatusInfo info = new StatusInfo("hunky dory", this.infoProducers, this.infoTypes, this.infoJobs); return Mono.just(new ResponseEntity<>(info, HttpStatus.OK)); }