X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fclustering%2FEntityOwnershipState.java;fp=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fclustering%2FEntityOwnershipState.java;h=0000000000000000000000000000000000000000;hp=b98523501d82e9c1c660d61e7ce897726aaf3a1d;hb=99f994b3e45963f6ef46bc2b71ab4dd8eea8b9ac;hpb=4d7cf612a673d09132a37b2d4d3002a2f213de02 diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipState.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipState.java deleted file mode 100644 index b98523501d..0000000000 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipState.java +++ /dev/null @@ -1,48 +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.md.sal.common.api.clustering; - -/** - * A DTO that encapsulates ownership state for an entity. - * - * @author Thomas Pantelis - * - * @deprecated Use org.opendaylight.mdsal.common.api.clustering.EntityOwnershipState instead - */ -@Deprecated -public class EntityOwnershipState { - private final boolean isOwner; - private final boolean hasOwner; - - public EntityOwnershipState(boolean isOwner, boolean hasOwner) { - this.isOwner = isOwner; - this.hasOwner = hasOwner; - } - - /** - * Returns the current ownership status of the entity for this process instance. - * @return true if this process is the owner of the entity - */ - public boolean isOwner() { - return isOwner; - } - - /** - * Returns the current ownership status of the entity across all process instances. - * @return true if the entity has an owner which may or may not be this process. If false, then - * the entity has no candidates and thus no owner. - */ - public boolean hasOwner() { - return hasOwner; - } - - @Override - public String toString() { - return "EntityOwnershipState [isOwner=" + isOwner + ", hasOwner=" + hasOwner + "]"; - } -}