Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added RIC state to RicInfo in the agent NBI
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
Rics.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
index
3b8e587
..
66cecd3
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
@@
-23,6
+23,7
@@
package org.oransc.policyagent.repository;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
+import java.util.Vector;
import org.oransc.policyagent.exceptions.ServiceException;
import org.oransc.policyagent.exceptions.ServiceException;
@@
-37,7
+38,7
@@
public class Rics {
}
public synchronized Iterable<Ric> getRics() {
}
public synchronized Iterable<Ric> getRics() {
- return
registeredRics.values(
);
+ return
new Vector<>(registeredRics.values()
);
}
public synchronized Ric getRic(String name) throws ServiceException {
}
public synchronized Ric getRic(String name) throws ServiceException {