X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=neutron-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fneutron%2Fspi%2FINeutronTapFlowCRUD.java;h=9689711ecbb58420554f6d295d1438862e3d7ea1;hb=fbab29a87a5a0e44161d5476a009d1eff580a6e5;hp=73d085cc1ee580313cc35811e4ac020dfcba4631;hpb=8d593a02d7e6c70fa98c33203c8b8941fecb78aa;p=neutron.git diff --git a/neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronTapFlowCRUD.java b/neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronTapFlowCRUD.java index 73d085cc1..9689711ec 100644 --- a/neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronTapFlowCRUD.java +++ b/neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronTapFlowCRUD.java @@ -7,6 +7,10 @@ */ 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. */ @@ -20,9 +24,10 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD { * @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. @@ -32,9 +37,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD { * @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 @@ -43,9 +48,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD { * @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 @@ -53,10 +58,9 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD { * * @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. @@ -65,8 +69,7 @@ public interface INeutronTapFlowCRUD extends INeutronCRUD { * 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; }