Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Raise EOS unsuccessful request reporting to error
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
entityownership
/
messages
/
RegisterCandidateLocal.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/RegisterCandidateLocal.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/RegisterCandidateLocal.java
index 72c95e0c23abdccb8709fea0d522996fb39885b3..34500334b067ce87d6ab4d001f2be749eb6ccf48 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/RegisterCandidateLocal.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/RegisterCandidateLocal.java
@@
-7,8
+7,7
@@
*/
package org.opendaylight.controller.cluster.datastore.entityownership.messages;
*/
package org.opendaylight.controller.cluster.datastore.entityownership.messages;
-import org.opendaylight.controller.md.sal.common.api.clustering.Entity;
-import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipCandidate;
+import org.opendaylight.mdsal.eos.dom.api.DOMEntity;
/**
* Message sent to the local EntityOwnershipShard to register a candidate.
/**
* Message sent to the local EntityOwnershipShard to register a candidate.
@@
-16,27
+15,18
@@
import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipC
* @author Thomas Pantelis
*/
public class RegisterCandidateLocal {
* @author Thomas Pantelis
*/
public class RegisterCandidateLocal {
- private final EntityOwnershipCandidate candidate;
- private final Entity entity;
+ private final DOMEntity entity;
- public RegisterCandidateLocal(EntityOwnershipCandidate candidate, Entity entity) {
- this.candidate = candidate;
+ public RegisterCandidateLocal(DOMEntity entity) {
this.entity = entity;
}
this.entity = entity;
}
- public EntityOwnershipCandidate getCandidate() {
- return candidate;
- }
-
- public Entity getEntity() {
+ public DOMEntity getEntity() {
return entity;
}
@Override
public String toString() {
return entity;
}
@Override
public String toString() {
- StringBuilder builder = new StringBuilder();
- builder.append("RegisterCandidateLocal [entity=").append(entity).append(", candidate=").append(candidate)
- .append("]");
- return builder.toString();
+ return "RegisterCandidateLocal [entity=" + entity + "]";
}
}
}
}