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=849be95b5e998e6faf0848b07792016207aa4eda;hpb=16992950401973c54f4ac24c7935fa6b7d189ef0;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 849be95b5..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 @@ -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 { + /** * Applications call this interface method to check if a NeutronTapFlow object exists. * @@ -21,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. @@ -33,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 @@ -44,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 @@ -54,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. @@ -66,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; }