/** * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.openflowplugin.applications.statistics.manager; import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener; import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node; import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.opendaylight.yangtools.yang.binding.NotificationListener; /** * statistics-manager * org.opendaylight.openflowplugin.applications.statistics.manager * * StatListeningCommiter * Definition Interface for {@link DataTreeChangeListener} implementer class rule. * Interface represent a contract between Config/DataStore changes and * Operational/DataStore commits. All Operational/DataStore commit have * to by represent as RPC Device response Notification processing. So * Operational/DS could contains only real mirror of OF Device * * @author <a href="mailto:vdemcak@cisco.com">Vaclav Demcak</a> * * Created: Aug 27, 2014 */ public interface StatListeningCommiter<T extends DataObject, N extends NotificationListener> extends DataTreeChangeListener<T>, StatNotifyCommiter<N> { /** * All StatListeningCommiter implementer has to clean its actual state * for all cached data related to disconnected node. * Method prevents unwanted dataStore changes. * * @param nodeIdent */ void cleanForDisconnect(InstanceIdentifier<Node> nodeIdent); }