package org.opendaylight.controller.cluster.datastore.entityownership;
import org.opendaylight.controller.md.sal.common.api.clustering.Entity;
-import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipCandidate;
import org.opendaylight.controller.md.sal.common.impl.clustering.AbstractEntityOwnershipCandidateRegistration;
/**
class DistributedEntityOwnershipCandidateRegistration extends AbstractEntityOwnershipCandidateRegistration {
private final DistributedEntityOwnershipService service;
- DistributedEntityOwnershipCandidateRegistration(EntityOwnershipCandidate candidate, Entity entity,
- DistributedEntityOwnershipService service) {
- super(candidate, entity);
+ DistributedEntityOwnershipCandidateRegistration(Entity entity, DistributedEntityOwnershipService service) {
+ super(entity);
this.service = service;
}
@Override
- public void close() {
- service.unregisterCandidate(getEntity(), getInstance());
+ protected void removeRegistration() {
+ service.unregisterCandidate(getInstance());
}
+
+ @Override
+ public String toString() {
+ return "DistributedEntityOwnershipCandidateRegistration [entity=" + getInstance() + "]";
+ }
+
+
}