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;
16 import com.google.common.util.concurrent.ListenableFuture;
19 * Interface exposed to AbstractStatsTracker by its parent NodeStatisticsHandler.
20 * While we could simply exist without this interface, its purpose is to document
21 * the contract between the two classes.
23 interface FlowCapableContext {
24 InstanceIdentifier<Node> getNodeIdentifier();
26 DataModificationTransaction startDataModification();
27 void registerTransaction(ListenableFuture<TransactionId> future);
28 void registerTableTransaction(ListenableFuture<TransactionId> future, Short tableId);