* 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.
*
* @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.
* @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
* @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
*
* @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.
* 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;
}