BUG-2637: migration consequence - fix unit test
[controller.git] / opendaylight / md-sal / statistics-manager / src / main / java / org / opendaylight / controller / md / statistics / manager / StatListeningCommiter.java
1 /**
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.md.statistics.manager;
10
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;
16
17 /**
18  * statistics-manager
19  * org.opendaylight.controller.md.statistics.manager
20  *
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
27  *
28  * @author <a href="mailto:vdemcak@cisco.com">Vaclav Demcak</a>
29  *
30  * Created: Aug 27, 2014
31  */
32 public interface StatListeningCommiter<T extends DataObject, N extends NotificationListener> extends DataChangeListener, StatNotifyCommiter<N> {
33
34
35     /**
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.
39      *
40      * @param nodeIdent
41      */
42     void cleanForDisconnect(InstanceIdentifier<Node> nodeIdent);
43 }
44