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%2FDistributedEntityOwnershipCandidateRegistration.java;h=4d65c55b83e43e8ff1b1d1c74b4b316f103fb43b;hb=HEAD;hp=398671e660a7e92aaf13ec6eb3b8896e3d1b1b1c;hpb=6b31b94c7c06711efd69f7fd456167026f34dc2e;p=controller.git 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 deleted file mode 100644 index 398671e660..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipCandidateRegistration.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.cluster.datastore.entityownership; - -import org.opendaylight.mdsal.eos.dom.api.DOMEntity; -import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipCandidateRegistration; -import org.opendaylight.yangtools.concepts.AbstractObjectRegistration; - -/** - * Implementation of EntityOwnershipCandidateRegistration. - * - * @author Thomas Pantelis - */ -class DistributedEntityOwnershipCandidateRegistration extends AbstractObjectRegistration - implements DOMEntityOwnershipCandidateRegistration { - private final DistributedEntityOwnershipService service; - - DistributedEntityOwnershipCandidateRegistration(DOMEntity entity, DistributedEntityOwnershipService service) { - super(entity); - this.service = service; - } - - @Override - protected void removeRegistration() { - service.unregisterCandidate(getInstance()); - } - - @Override - public String toString() { - return "DistributedEntityOwnershipCandidateRegistration [entity=" + getInstance() + "]"; - } - - -}