Remove deprecated CheckedFuture.
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
index 4ee078150777e7443fd0334cf0a258f7a1220240..8463b1f3cc90bb4630b20982b3cfc21ae3829653 100644 (file)
@@ -9,6 +9,7 @@
 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;
@@ -32,32 +33,16 @@ public interface DeviceManager extends
      */
     void initialize();
 
-    void setFlowRemovedNotificationOn(boolean value);
-
-    boolean isFlowRemovedNotificationOn();
-
-    void setGlobalNotificationQuota(long globalNotificationQuota);
-
-    void setSwitchFeaturesMandatory(boolean switchFeaturesMandatory);
-
-    void setSkipTableFeatures(boolean skipTableFeatures);
-
-    void setBarrierCountLimit(int barrierCountLimit);
-
-    void setBarrierInterval(long barrierTimeoutLimit);
-
-    CheckedFuture<Void, TransactionCommitFailedException> removeDeviceFromOperationalDS(
-            DeviceInfo deviceInfo);
-
-    CheckedFuture<Void, TransactionCommitFailedException> removeDeviceFromOperationalDS(
-            KeyedInstanceIdentifier<Node, NodeKey> ii);
+    ListenableFuture<Void> removeDeviceFromOperationalDS(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> ii);
 
     DeviceContext createContext(@Nonnull ConnectionContext connectionContext);
 
-    long getBarrierIntervalNanos();
 
-    int getBarrierCountLimit();
+    void sendNodeAddedNotification(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
 
-    void sendNodeAddedNotification(@Nonnull DeviceInfo deviceInfo);
+    void sendNodeRemovedNotification(
+            @Nonnull KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier);
 }