diff options
author | sreeja gattagouni <sg00744975@techmahindra.com> | 2022-04-21 15:24:22 +0530 |
---|---|---|
committer | sreeja gattagouni <sg00744975@techmahindra.com> | 2022-04-21 15:24:45 +0530 |
commit | fb7e0b5f8b13a0cd8b01011445c27cf47a415954 (patch) | |
tree | 0c080ae5925fa894777701fbfeb08c200d50e548 /common/src/main/java/org | |
parent | 71f82aa2d92c235e8efa2cbaa26188afd3f1bb29 (diff) |
Processing Priority for Nested Services
- Processing Priority For Nested Services.
- Prioritising services by mentioning priority number while triggering
requests will allow the Services to be instantiated as per the
priority in a Nested-Services having Parent-Child Services Relationships.
Issue-ID: SO-3855
Change-Id: I66d83f324c122d842f52f0b808dab5640b8c9abf
Signed-off-by: sreeja gattagouni <sg00744975@techmahindra.com>
Diffstat (limited to 'common/src/main/java/org')
-rw-r--r-- | common/src/main/java/org/onap/so/serviceinstancebeans/Service.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/serviceinstancebeans/Service.java b/common/src/main/java/org/onap/so/serviceinstancebeans/Service.java index c368f67907..14b1ab5974 100644 --- a/common/src/main/java/org/onap/so/serviceinstancebeans/Service.java +++ b/common/src/main/java/org/onap/so/serviceinstancebeans/Service.java @@ -45,6 +45,9 @@ public class Service implements Serializable { private List<Map<String, String>> instanceParams = new ArrayList<>(); @JsonProperty("resources") protected Resources resources; + @JsonProperty("processingPriority") + protected Integer processingPriority = 0; + public ModelInfo getModelInfo() { return modelInfo; @@ -86,9 +89,19 @@ public class Service implements Serializable { this.resources = resources; } + public Integer getProcessingPriority() { + return processingPriority; + } + + public void setProcessingPriority(Integer processingPriority) { + this.processingPriority = processingPriority; + } + + @Override public String toString() { return "Service [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration + ", instanceName=" - + instanceName + ", instanceParams=" + instanceParams + ", resources=" + resources + "]"; + + instanceName + ", instanceParams=" + instanceParams + ", resources=" + resources + + ", processingPriority=" + processingPriority + "]"; } } |