2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.cluster.datastore.entityownership.messages;
11 import java.util.Collection;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 * Message sent when a candidate is removed for an entity.
18 * @author Thomas Pantelis
20 public class CandidateRemoved {
21 private final YangInstanceIdentifier entityPath;
22 private final String removedCandidate;
23 private final Collection<String> remainingCandidates;
25 public CandidateRemoved(YangInstanceIdentifier entityPath, String removedCandidate,
26 Collection<String> remainingCandidates) {
27 this.entityPath = entityPath;
28 this.removedCandidate = removedCandidate;
29 this.remainingCandidates = remainingCandidates;
32 public YangInstanceIdentifier getEntityPath() {
36 public String getRemovedCandidate() {
37 return removedCandidate;
40 public Collection<String> getRemainingCandidates() {
41 return remainingCandidates;
45 public String toString() {
46 return "CandidateRemoved [entityPath=" + entityPath + ", removedCandidate=" + removedCandidate
47 + ", remainingCandidates=" + remainingCandidates + "]";