Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add SDNR A1 client in policy-agent
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
controllers
/
ServiceStatus.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java
b/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java
index
64647b8
..
c30cce1
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java
@@
-17,24
+17,31
@@
* limitations under the License.
* ========================LICENSE_END===================================
*/
* limitations under the License.
* ========================LICENSE_END===================================
*/
+
package org.oransc.policyagent.controllers;
package org.oransc.policyagent.controllers;
-import com.google.gson.annotations.SerializedName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import org.immutables.gson.Gson;
import org.immutables.gson.Gson;
-import org.immutables.value.Value;
-@Value.Immutable
@Gson.TypeAdapters
@Gson.TypeAdapters
-public interface ServiceStatus {
+@ApiModel(value = "ServiceStatus")
+public class ServiceStatus {
+
+ @ApiModelProperty(value = "identity of the service")
+ public final String name;
- @
SerializedName("name
")
- public
String name()
;
+ @
ApiModelProperty(value = "policy keep alive timeout
")
+ public
final long keepAliveIntervalSeconds
;
- @
SerializedName("keepAliv
e")
- public
long keepAliveInterval()
;
+ @
ApiModelProperty(value = "time since last invocation by the servic
e")
+ public
final long timeSincePingSeconds
;
- @SerializedName("timeSincePing")
- public long timeSincePing();
+ ServiceStatus(String name, long keepAliveIntervalSeconds, long timeSincePingSeconds) {
+ this.name = name;
+ this.keepAliveIntervalSeconds = keepAliveIntervalSeconds;
+ this.timeSincePingSeconds = timeSincePingSeconds;
+ }
}
}