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%2FSelectOwner.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fmessages%2FSelectOwner.java;h=0000000000000000000000000000000000000000;hb=f9ee2cce797cf12402dd55c406f3e270d7d2e20d;hp=cdb8c925eed7ba1831c88ca4d0fdc5f84eba8bdb;hpb=44d274e8a4282ef859a35369c563e4963cf2185a;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/SelectOwner.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/SelectOwner.java deleted file mode 100644 index cdb8c925ee..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/messages/SelectOwner.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2015 Cisco 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.messages; - -import static java.util.Objects.requireNonNull; - -import java.util.Collection; -import org.opendaylight.controller.cluster.datastore.entityownership.selectionstrategy.EntityOwnerSelectionStrategy; -import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; - -/** - * Message sent when a new owner needs to be selected. - */ -public class SelectOwner { - private final YangInstanceIdentifier entityPath; - private final Collection allCandidates; - private final EntityOwnerSelectionStrategy ownerSelectionStrategy; - - public SelectOwner(final YangInstanceIdentifier entityPath, final Collection allCandidates, - final EntityOwnerSelectionStrategy ownerSelectionStrategy) { - this.entityPath = requireNonNull(entityPath, "entityPath should not be null"); - this.allCandidates = requireNonNull(allCandidates, "allCandidates should not be null"); - this.ownerSelectionStrategy = requireNonNull(ownerSelectionStrategy, - "ownerSelectionStrategy should not be null"); - } - - public YangInstanceIdentifier getEntityPath() { - return entityPath; - } - - public Collection getAllCandidates() { - return allCandidates; - } - - public EntityOwnerSelectionStrategy getOwnerSelectionStrategy() { - return ownerSelectionStrategy; - } - - @Override - public String toString() { - return "SelectOwner [entityPath=" + entityPath + ", allCandidates=" + allCandidates - + ", ownerSelectionStrategy=" + ownerSelectionStrategy + "]"; - } -}