2 * Copyright (c) 2015 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
9 package org.opendaylight.openflowplugin.api.openflow.device;
11 import com.google.common.util.concurrent.CheckedFuture;
12 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener;
13 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService;
14 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
15 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
16 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
17 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
18 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
21 * This interface is responsible for instantiating DeviceContext and
22 * registering transaction chain for each DeviceContext. Each device
23 * has its own device context managed by this manager.
25 public interface DeviceManager extends
27 DeviceConnectedHandler,
28 DeviceDisconnectedHandler,
30 EntityOwnershipListener {
33 * invoked after all services injected
37 void setFlowRemovedNotificationOn(boolean value);
39 boolean isFlowRemovedNotificationOn();
41 void setSkipTableFeatures(boolean skipTableFeatures);
43 void setBarrierCountLimit(int barrierCountLimit);
45 void setBarrierInterval(long barrierTimeoutLimit);
47 CheckedFuture<Void, TransactionCommitFailedException> removeDeviceFromOperationalDS(DeviceInfo deviceInfo);