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
8 package org.opendaylight.controller.cluster.entityownership.messages;
10 import java.util.Collection;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
14 * Message sent when a candidate is removed for an entity.
17 * @author Thomas Pantelis
19 public class CandidateRemoved {
20 private final YangInstanceIdentifier entityPath;
21 private final String removedCandidate;
22 private final Collection<String> remainingCandidates;
24 public CandidateRemoved(final YangInstanceIdentifier entityPath, final String removedCandidate,
25 final Collection<String> remainingCandidates) {
26 this.entityPath = entityPath;
27 this.removedCandidate = removedCandidate;
28 this.remainingCandidates = remainingCandidates;
31 public YangInstanceIdentifier getEntityPath() {
35 public String getRemovedCandidate() {
36 return removedCandidate;
39 public Collection<String> getRemainingCandidates() {
40 return remainingCandidates;
44 public String toString() {
45 return "CandidateRemoved [entityPath=" + entityPath + ", removedCandidate=" + removedCandidate
46 + ", remainingCandidates=" + remainingCandidates + "]";