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.controller.md.sal.binding.api.DataBroker db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddTapFlow(NeutronTapFlow tapFlow)Applications call this interface method to add a NeutronTapFlow object to the concurrent map.protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TapFlow>createTapFlowInstanceIdentifier(String tapServiceUUID, TapFlow item)voiddeleteTapFlow(String tapServiceUUID, String tapFlowUUID)Applications call this interface method to delete a NeutronTapFlow object.protected NeutronTapFlowfromMd(TapFlow flow)protected List<TapFlow>getDataObjectList(TapFlows flows)NeutronTapFlowgetTapFlow(String tapServiceUUID, String tapFlowUUID)Applications call this interface method to get a NeutronTapFlow object.booleantapFlowExists(String tapServiceUUID, String tapFlowUUID)Applications call this interface method to check if a NeutronTapFlow object exists.protected TapFlowtoMd(NeutronTapFlow flow)voidupdateTapFlow(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, close, exists, fromMdAdminAttributes, fromMdBaseAttributes, fromMdIds, get, getAll, getDataBroker, getMdParentClass, ifNonNull, readMd, remove, toMd, toMdAdminAttributes, toMdBaseAttributes, toMdIds, toMdIds, toUuid, update
-
-
-
-
Method Detail
-
createTapFlowInstanceIdentifier
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TapFlow> createTapFlowInstanceIdentifier(String tapServiceUUID, TapFlow item)
-
getDataObjectList
protected List<TapFlow> getDataObjectList(TapFlows flows)
- Specified by:
getDataObjectListin classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
fromMd
protected NeutronTapFlow fromMd(TapFlow flow)
- Specified by:
fromMdin classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
toMd
protected TapFlow toMd(NeutronTapFlow flow)
- Specified by:
toMdin classAbstractTranscriberInterface<TapFlow,TapFlows,TapFlowKey,NeutronTapFlow,TapServiceAttributes>
-
tapFlowExists
public boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID) throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
Description copied from interface:INeutronTapFlowCRUDApplications call this interface method to check if a NeutronTapFlow object exists.- Specified by:
tapFlowExistsin interfaceINeutronTapFlowCRUD- Parameters:
tapServiceUUID- UUID of Tap ServicetapFlowUUID- UUID of Tap Flow- Returns:
- boolean on whether the object was added or not
- Throws:
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException- if the read failed
-
updateTapFlow
public void updateTapFlow(NeutronTapFlow tapFlow) throws org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
Description copied from interface:INeutronTapFlowCRUDApplications call this interface method to update a NeutronTapFlow object to the concurrent map.- Specified by:
updateTapFlowin interfaceINeutronTapFlowCRUD- Parameters:
tapFlow- OpenStackNetwork object- Throws:
org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException- if the write failed
-
addTapFlow
public boolean addTapFlow(NeutronTapFlow tapFlow) throws org.opendaylight.yangtools.yang.common.OperationFailedException
Description copied from interface:INeutronTapFlowCRUDApplications call this interface method to add a NeutronTapFlow object to the concurrent map.- Specified by:
addTapFlowin 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.controller.md.sal.common.api.data.ReadFailedException
Description copied from interface:INeutronTapFlowCRUDApplications call this interface method to get a NeutronTapFlow object.- Specified by:
getTapFlowin interfaceINeutronTapFlowCRUD- Parameters:
tapServiceUUID- UUID of Tap ServicetapFlowUUID- UUID of Tap Flow- Returns:
- NeutronTapFlow object
- Throws:
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException- if the read failed
-
deleteTapFlow
public void deleteTapFlow(String tapServiceUUID, String tapFlowUUID) throws org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
Description copied from interface:INeutronTapFlowCRUDApplications call this interface method to delete a NeutronTapFlow object.- Specified by:
deleteTapFlowin interfaceINeutronTapFlowCRUD- Parameters:
tapServiceUUID- UUID of Tap ServicetapFlowUUID- UUID of Tap Flow- Throws:
org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException- if the write failed
-
-