Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Removed the duplicate dependency"
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
Ric.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java
index
18a2dc7
..
98c497f
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java
@@
-152,6
+152,12
@@
public class Ric {
return supportedPolicyTypes.containsKey(typeName);
}
return supportedPolicyTypes.containsKey(typeName);
}
+ @Override
+ public String toString() {
+ return Ric.class.getSimpleName() + ": " + "name: " + name() + ", state: " + state + ", baseUrl: "
+ + ricConfig.baseUrl() + ", managedNodes: " + ricConfig.managedElementIds();
+ }
+
/**
* Represents the states possible for a Ric.
*/
/**
* Represents the states possible for a Ric.
*/
@@
-163,6
+169,10
@@
public class Ric {
/**
* The Ric is working fine.
*/
/**
* The Ric is working fine.
*/
- ACTIVE
+ ACTIVE,
+ /**
+ * The Ric cannot be contacted.
+ */
+ NOT_REACHABLE
}
}
}
}