Remove deprecated CheckedFuture.
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
index ecf6021470602164131bacce56ca93aecb0e559b..8463b1f3cc90bb4630b20982b3cfc21ae3829653 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015, 2017 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,
@@ -9,11 +9,15 @@
 package org.opendaylight.openflowplugin.api.openflow.device;
 
 import com.google.common.util.concurrent.CheckedFuture;
+import com.google.common.util.concurrent.ListenableFuture;
+import javax.annotation.Nonnull;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
+import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
+import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
 
 /**
  * This interface is responsible for instantiating DeviceContext and
@@ -22,8 +26,6 @@ import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrari
  */
 public interface DeviceManager extends
         OFPManager,
-        DeviceConnectedHandler,
-        DeviceDisconnectedHandler,
         TranslatorLibrarian {
 
     /**
@@ -31,18 +33,16 @@ public interface DeviceManager extends
      */
     void initialize();
 
-    void setFlowRemovedNotificationOn(boolean value);
+    ListenableFuture<Void> removeDeviceFromOperationalDS(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> ii);
 
-    boolean isFlowRemovedNotificationOn();
+    DeviceContext createContext(@Nonnull ConnectionContext connectionContext);
 
-    void setSkipTableFeatures(boolean skipTableFeatures);
 
-    void setBarrierCountLimit(int barrierCountLimit);
+    void sendNodeAddedNotification(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
 
-    void setBarrierInterval(long barrierTimeoutLimit);
-
-    CheckedFuture<Void, TransactionCommitFailedException> removeDeviceFromOperationalDS(DeviceInfo deviceInfo);
-
-    void setUseSingleLayerSerialization(Boolean useSingleLayerSerilization);
+    void sendNodeRemovedNotification(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
 }