Bump upstreams for Silicon
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronTapFlowCRUD.java
index 849be95b5e998e6faf0848b07792016207aa4eda..9689711ecbb58420554f6d295d1438862e3d7ea1 100644 (file)
@@ -5,14 +5,17 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.neutron.spi;
 
+import org.opendaylight.mdsal.common.api.ReadFailedException;
+import org.opendaylight.mdsal.common.api.TransactionCommitFailedException;
+import org.opendaylight.yangtools.yang.common.OperationFailedException;
+
 /**
  * This interface defines the methods for CRUD of NB OpenStack Tap Flow objects.
  */
-
 public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
+
     /**
      * Applications call this interface method to check if a NeutronTapFlow object exists.
      *
@@ -21,9 +24,10 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
      * @param tapFlowUUID
      *            UUID of Tap Flow
      * @return boolean on whether the object was added or not
+     * @throws ReadFailedException if the read failed
      */
 
-    boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID);
+    boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID) throws ReadFailedException;
 
     /**
      * Applications call this interface method to get a NeutronTapFlow object.
@@ -33,9 +37,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
      * @param tapFlowUUID
      *            UUID of Tap Flow
      * @return NeutronTapFlow object
+     * @throws ReadFailedException if the read failed
      */
-
-    NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID);
+    NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID) throws ReadFailedException;
 
     /**
      * Applications call this interface method to add a NeutronTapFlow object to the
@@ -44,9 +48,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
      * @param input
      *            OpenStackNetwork object
      * @return boolean on whether the object was added or not
+     * @throws OperationFailedException if the read or write failed
      */
-
-    boolean addTapFlow(NeutronTapFlow input);
+    boolean addTapFlow(NeutronTapFlow input) throws ReadFailedException, OperationFailedException;
 
     /**
      * Applications call this interface method to update a NeutronTapFlow object to the
@@ -54,10 +58,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
      *
      * @param input
      *            OpenStackNetwork object
-     * @return boolean on whether the object was added or not
+     * @throws TransactionCommitFailedException if the write failed
      */
-
-    boolean updateTapFlow(NeutronTapFlow input);
+    void updateTapFlow(NeutronTapFlow input) throws TransactionCommitFailedException;
 
     /**
      * Applications call this interface method to delete a NeutronTapFlow object.
@@ -66,8 +69,7 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
      *            UUID of Tap Service
      * @param tapFlowUUID
      *            UUID of Tap Flow
-     * @return boolean on whether the object was added or not
+     * @throws TransactionCommitFailedException if the write failed
      */
-
-    boolean deleteTapFlow(String tapServiceUUID, String tapFlowUUID);
+    void deleteTapFlow(String tapServiceUUID, String tapFlowUUID) throws TransactionCommitFailedException;
 }