Class NeutronLoadBalancerPoolInterface
- java.lang.Object
-
- org.opendaylight.neutron.transcriber.AbstractTranscriberInterface<T,U,K,S,Neutron>
-
- org.opendaylight.neutron.transcriber.AbstractNeutronInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool>
-
- org.opendaylight.neutron.transcriber.NeutronLoadBalancerPoolInterface
-
- All Implemented Interfaces:
AutoCloseable
,INeutronCRUD<NeutronLoadBalancerPool>
,INeutronLoadBalancerPoolCRUD
@Singleton public final class NeutronLoadBalancerPoolInterface extends AbstractNeutronInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool> implements INeutronLoadBalancerPoolCRUD
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.neutron.spi.INeutronCRUD
INeutronCRUD.Result
-
-
Constructor Summary
Constructors Constructor Description NeutronLoadBalancerPoolInterface(org.opendaylight.mdsal.binding.api.DataBroker db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input)
Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the concurrent map.protected NeutronLoadBalancerPool
fromMd(Pool pool)
protected NeutronLoadBalancerPoolMember
fromMemberMd(Member member)
List<NeutronLoadBalancerPoolMember>
getAllNeutronLoadBalancerPoolMembers(String poolUuid)
Applications call this interface method to return all NeutronLoadBalancerPoolMember objects.protected Collection<Pool>
getDataObjectList(Pools pools)
NeutronLoadBalancerPoolMember
getNeutronLoadBalancerPoolMember(String poolUuid, String uuid)
Applications call this interface method to return if a particular NeutronLoadBalancerPoolMember object exists.boolean
neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid)
Applications call this interface method to determine if a particular NeutronLoadBalancerPoolMember object exists.boolean
neutronLoadBalancerPoolMemberInUse(String poolUuid, String loadBalancerPoolMemberID)
Applications call this interface method to see if a MAC address is in use.boolean
removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid)
Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the concurrent map.protected Pool
toMd(NeutronLoadBalancerPool pool)
boolean
updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta)
Applications call this interface method to edit a NeutronLoadBalancerPoolMember object.-
Methods inherited from class org.opendaylight.neutron.transcriber.AbstractNeutronInterface
getMdParentClass
-
Methods inherited from class org.opendaylight.neutron.transcriber.AbstractTranscriberInterface
add, areAllDependenciesAvailable, checkedCommit, close, exists, fromMdAdminAttributes, fromMdBaseAttributes, fromMdIds, get, getAll, getDataBroker, ifNonNull, readMd, remove, toMd, toMdAdminAttributes, toMdBaseAttributes, toMdIds, toMdIds, toUuid, update
-
-
-
-
Method Detail
-
getDataObjectList
protected Collection<Pool> getDataObjectList(Pools pools)
- Specified by:
getDataObjectList
in classAbstractTranscriberInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool,Neutron>
-
toMd
protected Pool toMd(NeutronLoadBalancerPool pool)
- Specified by:
toMd
in classAbstractTranscriberInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool,Neutron>
-
fromMd
protected NeutronLoadBalancerPool fromMd(Pool pool)
- Specified by:
fromMd
in classAbstractTranscriberInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool,Neutron>
-
neutronLoadBalancerPoolMemberExists
public boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to determine if a particular NeutronLoadBalancerPoolMember object exists.- Specified by:
neutronLoadBalancerPoolMemberExists
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- UUID of the NeutronLoadBalancerPool objectuuid
- UUID of the NeutronLoadBalancerPoolMember object- Returns:
- boolean
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read failed
-
getNeutronLoadBalancerPoolMember
public NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to return if a particular NeutronLoadBalancerPoolMember object exists.- Specified by:
getNeutronLoadBalancerPoolMember
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- UUID of the NeutronLoadBalancerPool objectuuid
- UUID of the NeutronLoadBalancerPoolMember object- Returns:
NeutronLoadBalancerPoolMember
OpenStackNeutronLoadBalancerPoolMember class- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read failed
-
getAllNeutronLoadBalancerPoolMembers
public List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to return all NeutronLoadBalancerPoolMember objects.- Specified by:
getAllNeutronLoadBalancerPoolMembers
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- UUID of the NeutronLoadBalancerPool object- Returns:
- List of OpenStackNetworks objects
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read failed
-
addNeutronLoadBalancerPoolMember
public boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input) throws org.opendaylight.yangtools.yang.common.OperationFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the concurrent map.- Specified by:
addNeutronLoadBalancerPoolMember
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- UUID of the NeutronLoadBalancerPool objectinput
- 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
-
removeNeutronLoadBalancerPoolMember
public boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid) throws org.opendaylight.yangtools.yang.common.OperationFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the concurrent map.- Specified by:
removeNeutronLoadBalancerPoolMember
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- UUID of the NeutronLoadBalancerPool objectuuid
- identifier for the NeutronLoadBalancerPoolMember object- Returns:
- boolean on whether the object was removed or not
- Throws:
org.opendaylight.yangtools.yang.common.OperationFailedException
- if the read or write failed
-
updateNeutronLoadBalancerPoolMember
public boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta) throws org.opendaylight.yangtools.yang.common.OperationFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to edit a NeutronLoadBalancerPoolMember object.- Specified by:
updateNeutronLoadBalancerPoolMember
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- identifier of the NeutronLoadBalancerPool objectuuid
- identifier of the NeutronLoadBalancerPoolMember objectdelta
- OpenStackNeutronLoadBalancerPoolMember object containing changes to apply- Returns:
- boolean on whether the object was updated or not
- Throws:
org.opendaylight.yangtools.yang.common.OperationFailedException
- if the read or write operation failed
-
neutronLoadBalancerPoolMemberInUse
public boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String loadBalancerPoolMemberID) throws org.opendaylight.mdsal.common.api.ReadFailedException
Description copied from interface:INeutronLoadBalancerPoolCRUD
Applications call this interface method to see if a MAC address is in use.- Specified by:
neutronLoadBalancerPoolMemberInUse
in interfaceINeutronLoadBalancerPoolCRUD
- Parameters:
poolUuid
- identifier of the NeutronLoadBalancerPool objectloadBalancerPoolMemberID
- identifier of the NeutronLoadBalancerPoolMember object- Returns:
- boolean on whether the macAddress is already associated with a port or not
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if the read operation failed
-
fromMemberMd
protected NeutronLoadBalancerPoolMember fromMemberMd(Member member)
-
-