Class NeutronTapFlowInterface
- java.lang.Object
-
- org.opendaylight.neutron.transcriber.AbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
- org.opendaylight.neutron.transcriber.NeutronTapFlowInterface
-
- All Implemented Interfaces:
AutoCloseable
,INeutronCRUD<NeutronTapFlow>
,INeutronTapFlowCRUD
@Singleton public final class NeutronTapFlowInterface extends AbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes> implements INeutronTapFlowCRUD
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.neutron.spi.INeutronCRUD
INeutronCRUD.Result
-
-
Constructor Summary
Constructors Constructor Description NeutronTapFlowInterface(org.opendaylight.mdsal.binding.api.DataBroker db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addTapFlow(NeutronTapFlow tapFlow)
Applications call this interface method to add a NeutronTapFlow object to the concurrent map.void
deleteTapFlow(String tapServiceUUID, String tapFlowUUID)
Applications call this interface method to delete a NeutronTapFlow object.protected NeutronTapFlow
fromMd(TapFlow flow)
protected Collection<TapFlow>
getDataObjectList(TapFlows flows)
NeutronTapFlow
getTapFlow(String tapServiceUUID, String tapFlowUUID)
Applications call this interface method to get a NeutronTapFlow object.boolean
tapFlowExists(String tapServiceUUID, String tapFlowUUID)
Applications call this interface method to check if a NeutronTapFlow object exists.protected TapFlow
toMd(NeutronTapFlow flow)
void
updateTapFlow(NeutronTapFlow tapFlow)
Applications call this interface method to update a NeutronTapFlow object to the concurrent map.-
Methods inherited from class org.opendaylight.neutron.transcriber.AbstractTranscriberInterface
add, areAllDependenciesAvailable, checkedCommit, close, exists, fromMdAdminAttributes, fromMdBaseAttributes, fromMdIds, get, getAll, getDataBroker, getMdParentClass, ifNonNull, readMd, remove, toMd, toMdAdminAttributes, toMdBaseAttributes, toMdIds, toMdIds, toUuid, update
-
-
-
-
Method Detail
-
getDataObjectList
protected Collection<TapFlow> getDataObjectList(TapFlows flows)
- Specified by:
getDataObjectList
in classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
fromMd
protected NeutronTapFlow fromMd(TapFlow flow)
- Specified by:
fromMd
in classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
toMd
protected TapFlow toMd(NeutronTapFlow flow)
- Specified by:
toMd
in classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
tapFlowExists
public boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronTapFlowCRUD
Applications call this interface method to check if a NeutronTapFlow object exists.- Specified by:
tapFlowExists
in interfaceINeutronTapFlowCRUD
- Parameters:
tapServiceUUID
- UUID of Tap ServicetapFlowUUID
- UUID of Tap Flow- Returns:
- boolean on whether the object was added or not
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read failed
-
updateTapFlow
public void updateTapFlow(NeutronTapFlow tapFlow) throws org.opendaylight.mdsal.common.api.TransactionCommitFailedException
Description copied from interface:INeutronTapFlowCRUD
Applications call this interface method to update a NeutronTapFlow object to the concurrent map.- Specified by:
updateTapFlow
in interfaceINeutronTapFlowCRUD
- Parameters:
tapFlow
- OpenStackNetwork object- Throws:
org.opendaylight.mdsal.common.api.TransactionCommitFailedException
- if the write failed
-
addTapFlow
public boolean addTapFlow(NeutronTapFlow tapFlow) throws org.opendaylight.yangtools.yang.common.OperationFailedException
Description copied from interface:INeutronTapFlowCRUD
Applications call this interface method to add a NeutronTapFlow object to the concurrent map.- Specified by:
addTapFlow
in interfaceINeutronTapFlowCRUD
- Parameters:
tapFlow
- OpenStackNetwork object- Returns:
- boolean on whether the object was added or not
- Throws:
org.opendaylight.yangtools.yang.common.OperationFailedException
- if the read or write failed
-
getTapFlow
public NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronTapFlowCRUD
Applications call this interface method to get a NeutronTapFlow object.- Specified by:
getTapFlow
in interfaceINeutronTapFlowCRUD
- Parameters:
tapServiceUUID
- UUID of Tap ServicetapFlowUUID
- UUID of Tap Flow- Returns:
- NeutronTapFlow object
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read failed
-
deleteTapFlow
public void deleteTapFlow(String tapServiceUUID, String tapFlowUUID) throws org.opendaylight.mdsal.common.api.TransactionCommitFailedException
Description copied from interface:INeutronTapFlowCRUD
Applications call this interface method to delete a NeutronTapFlow object.- Specified by:
deleteTapFlow
in interfaceINeutronTapFlowCRUD
- Parameters:
tapServiceUUID
- UUID of Tap ServicetapFlowUUID
- UUID of Tap Flow- Throws:
org.opendaylight.mdsal.common.api.TransactionCommitFailedException
- if the write failed
-
-