X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Frepository%2FRic.java;h=98c497f76909f5f340e8d90ab9785925d25483a1;hb=ffe0c150f08205d73ee362f58f492aeb2703f295;hp=68b07aa0864408f097ebf2d87b797a0b7b8daa0f;hpb=7b13df75d4cec0e9e4b2042bd08207842f6e1544;p=nonrtric.git 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 68b07aa0..98c497f7 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/repository/Ric.java @@ -144,14 +144,20 @@ public class Ric { /** * Checks if a type is supported by this Ric. * - * @param type the type to check if it is supported. + * @param typeName the name of the type to check if it is supported. * - * @return true if the given type issupported by this Ric, false otherwise. + * @return true if the given type is supported by this Ric, false otherwise. */ public boolean isSupportingType(String 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. */ @@ -165,12 +171,8 @@ public class Ric { */ ACTIVE, /** - * Something is wrong with the Ric. - */ - FAULTY, - /** - * The node is unreachable at the moment. + * The Ric cannot be contacted. */ - UNREACHABLE + NOT_REACHABLE } }