2 * Copyright (c) 2017 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.clustering.it.provider.impl;
11 import java.util.Collection;
13 import javax.annotation.Nonnull;
14 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
15 import org.opendaylight.mdsal.dom.api.DOMDataTreeListener;
16 import org.opendaylight.mdsal.dom.api.DOMDataTreeListeningException;
17 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
18 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
20 public class IdIntsDOMDataTreeLIstener extends AbstractDataListener implements DOMDataTreeListener {
22 public void onDataTreeChanged(@Nonnull final Collection<DataTreeCandidate> changes,
23 @Nonnull final Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtrees) {
24 onReceivedChanges(changes);
28 public void onDataTreeFailed(@Nonnull final Collection<DOMDataTreeListeningException> causes) {
29 onReceivedError(causes);