Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 6540: EOS - Rework behavior of onPeerDown
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
entityownership
/
DistributedEntityOwnershipCandidateRegistration.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipCandidateRegistration.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipCandidateRegistration.java
index 94c7aa09766c4382f2085fbd0b1dae06b39daff4..398671e660a7e92aaf13ec6eb3b8896e3d1b1b1c 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipCandidateRegistration.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipCandidateRegistration.java
@@
-7,26
+7,33
@@
*/
package org.opendaylight.controller.cluster.datastore.entityownership;
*/
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.AbstractEntityOwnershipCandidate
Registration;
+import org.opendaylight.
mdsal.eos.dom.api.DOM
Entity;
+import org.opendaylight.
mdsal.eos.dom.api.DOMEntityOwnershipCandidateRegistration
;
+import org.opendaylight.
yangtools.concepts.AbstractObject
Registration;
/**
* Implementation of EntityOwnershipCandidateRegistration.
*
* @author Thomas Pantelis
*/
/**
* Implementation of EntityOwnershipCandidateRegistration.
*
* @author Thomas Pantelis
*/
-class DistributedEntityOwnershipCandidateRegistration extends AbstractEntityOwnershipCandidateRegistration {
+class DistributedEntityOwnershipCandidateRegistration extends AbstractObjectRegistration<DOMEntity>
+ implements DOMEntityOwnershipCandidateRegistration {
private final DistributedEntityOwnershipService service;
private final DistributedEntityOwnershipService service;
- DistributedEntityOwnershipCandidateRegistration(EntityOwnershipCandidate candidate, Entity entity,
- DistributedEntityOwnershipService service) {
- super(candidate, entity);
+ DistributedEntityOwnershipCandidateRegistration(DOMEntity entity, DistributedEntityOwnershipService service) {
+ super(entity);
this.service = service;
}
@Override
this.service = service;
}
@Override
- p
ublic void close
() {
- service.unregisterCandidate(get
Entity(), get
Instance());
+ p
rotected void removeRegistration
() {
+ service.unregisterCandidate(getInstance());
}
}
+
+ @Override
+ public String toString() {
+ return "DistributedEntityOwnershipCandidateRegistration [entity=" + getInstance() + "]";
+ }
+
+
}
}