Bug 4105: Implement EntityOwnershipListener registration/notification
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / DistributedEntityOwnershipCandidateRegistration.java
index 94c7aa09766c4382f2085fbd0b1dae06b39daff4..b92a124b2831adb2a224122db29cdfac6d4d353c 100644 (file)
@@ -26,7 +26,15 @@ class DistributedEntityOwnershipCandidateRegistration extends AbstractEntityOwne
     }
 
     @Override
-    public void close() {
+    protected void removeRegistration() {
         service.unregisterCandidate(getEntity(), getInstance());
     }
+
+    @Override
+    public String toString() {
+        return "DistributedEntityOwnershipCandidateRegistration [entity=" + getEntity() + ", candidate="
+                + getInstance() + "]";
+    }
+
+
 }