2 * Copyright (c) 2014 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.md.statistics.manager;
11 import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 import org.opendaylight.yangtools.yang.binding.NotificationListener;
19 * org.opendaylight.controller.md.statistics.manager
21 * StatListeningCommiter
22 * Definition Interface for {@link DataChangeListener} implementer class rule.
23 * Interface represent a contract between Config/DataStore changes and
24 * Operational/DataStore commits. All Operational/DataStore commit have
25 * to by represent as RPC Device response Notification processing. So
26 * Operational/DS could contains only real mirror of OF Device
28 * @author <a href="mailto:vdemcak@cisco.com">Vaclav Demcak</a>
30 * Created: Aug 27, 2014
32 public interface StatListeningCommiter<T extends DataObject, N extends NotificationListener> extends DataChangeListener, StatNotifyCommiter<N> {
36 * All StatListeningCommiter implementer has to clean its actual state
37 * for all cached data related to disconnected node.
38 * Method prevents unwanted dataStore changes.
42 void cleanForDisconnect(InstanceIdentifier<Node> nodeIdent);