X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fcontrollers%2FServiceRegistrationInfo.java;h=907fa1c43d50bdb6b0b16f0fc4fa11dc428257b2;hb=b40e1b476b25dfdd5ad3ba235ab085d6d4087be3;hp=6ffaebd379ed0e2dda6c04a8021b9ecc72bfa178;hpb=4a112834cf7ea69f230fde864856093ecadb9cfe;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceRegistrationInfo.java b/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceRegistrationInfo.java index 6ffaebd3..907fa1c4 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceRegistrationInfo.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceRegistrationInfo.java @@ -17,17 +17,36 @@ * limitations under the License. * ========================LICENSE_END=================================== */ + package org.oransc.policyagent.controllers; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + import org.immutables.gson.Gson; -import org.immutables.value.Value; -@Value.Immutable @Gson.TypeAdapters -public interface ServiceRegistrationInfo { +@ApiModel(value = "ServiceRegistrationInfo") +public class ServiceRegistrationInfo { + + @ApiModelProperty(value = "identity of the service") + public String serviceName; + + @ApiModelProperty( + value = "keep alive interval for policies owned by the service. 0 means no timeout supervision." + + " Polcies that are not refreshed within this time are removed") + public long keepAliveIntervalSeconds; + + @ApiModelProperty(value = "callback for notifying of RIC recovery") + public String callbackUrl; - public String name(); + public ServiceRegistrationInfo() { + } - public long keepAliveInterval(); + public ServiceRegistrationInfo(String name, long keepAliveIntervalSeconds, String callbackUrl) { + this.serviceName = name; + this.keepAliveIntervalSeconds = keepAliveIntervalSeconds; + this.callbackUrl = callbackUrl; + } }