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 new candidate is added for an entity.
18 * @author Thomas Pantelis
20 public class CandidateAdded {
21 private final YangInstanceIdentifier entityPath;
22 private final Collection<String> allCandidates;
23 private final String newCandidate;
25 public CandidateAdded(YangInstanceIdentifier entityPath, String newCandidate, Collection<String> allCandidates) {
26 this.entityPath = entityPath;
27 this.newCandidate = newCandidate;
28 this.allCandidates = allCandidates;
31 public YangInstanceIdentifier getEntityPath() {
35 public Collection<String> getAllCandidates() {
39 public String getNewCandidate() {
44 public String toString() {
45 return "CandidateAdded [entityPath=" + entityPath + ", newCandidate=" + newCandidate + ", allCandidates="
46 + allCandidates + "]";