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 test for ApplicationConfig
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
tasks
/
RicRecoveryTask.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/tasks/RicRecoveryTask.java
b/policy-agent/src/main/java/org/oransc/policyagent/tasks/RicRecoveryTask.java
index
b67dbe0
..
ab25eab
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/tasks/RicRecoveryTask.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/tasks/RicRecoveryTask.java
@@
-41,7
+41,8
@@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
import reactor.core.publisher.Mono;
/**
- * Recovery handling of RIC, which means:
+ * Recovery handling of RIC.
+ * This means:
* - load all policy types
* - send all policy instances to the RIC
* --- if that fails remove all policy instances
* - load all policy types
* - send all policy instances to the RIC
* --- if that fails remove all policy instances
@@
-68,7
+69,7
@@
public class RicRecoveryTask {
logger.debug("Handling ric: {}", ric.getConfig().name());
synchronized (ric) {
logger.debug("Handling ric: {}", ric.getConfig().name());
synchronized (ric) {
- if (ric.getState() ==
(Ric.RicState.RECOVERING)
) {
+ if (ric.getState() ==
Ric.RicState.RECOVERING
) {
return; // Already running
}
ric.setState(Ric.RicState.RECOVERING);
return; // Already running
}
ric.setState(Ric.RicState.RECOVERING);