Bug 6110: Fixed bugs in statistics manager due to race condition.
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
1 /*
2  * Copyright (c) 2015 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.openflowplugin.api.openflow.device;
10
11 import com.google.common.util.concurrent.CheckedFuture;
12 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
13 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
14 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
15 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
16 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
17
18 /**
19  * This interface is responsible for instantiating DeviceContext and
20  * registering transaction chain for each DeviceContext. Each device
21  * has its own device context managed by this manager.
22  */
23 public interface DeviceManager extends
24         OFPManager,
25         DeviceConnectedHandler,
26         DeviceDisconnectedHandler,
27         TranslatorLibrarian {
28
29     /**
30      * invoked after all services injected
31      */
32     void initialize();
33
34     void setFlowRemovedNotificationOn(boolean value);
35
36     boolean isFlowRemovedNotificationOn();
37
38     void setSkipTableFeatures(boolean skipTableFeatures);
39
40     void setBarrierCountLimit(int barrierCountLimit);
41
42     void setBarrierInterval(long barrierTimeoutLimit);
43
44     CheckedFuture<Void, TransactionCommitFailedException> removeDeviceFromOperationalDS(DeviceInfo deviceInfo);
45 }
46