X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fmessages%2FRegisterCandidateLocal.java;h=34500334b067ce87d6ab4d001f2be749eb6ccf48;hb=bdce894fa73714aa9f68eadad3524cfc94dc71d2;hp=72c95e0c23abdccb8709fea0d522996fb39885b3;hpb=81cc10db365aa8cde38a3d2777488bb83bd69ef5;p=controller.git 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 72c95e0c23..34500334b0 100644 --- 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; -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. @@ -16,27 +15,18 @@ import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipC * @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; } - public EntityOwnershipCandidate getCandidate() { - return candidate; - } - - public Entity getEntity() { + public DOMEntity getEntity() { 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 + "]"; } }