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
8 package org.opendaylight.controller.md.statistics.manager;
10 import org.opendaylight.controller.sal.binding.api.data.DataModificationTransaction;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev131103.TransactionId;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
17 * Interface exposed to AbstractStatsTracker by its parent NodeStatisticsHandler.
18 * While we could simply exist without this interface, its purpose is to document
19 * the contract between the two classes.
21 interface FlowCapableContext {
22 InstanceIdentifier<Node> getNodeIdentifier();
24 DataModificationTransaction startDataModification();
25 void registerTransaction(TransactionId id);
26 void registerTableTransaction(TransactionId id, Short tableId);