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 booleanaddNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input)Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the concurrent map.protected NeutronLoadBalancerPoolfromMd(Pool pool)protected NeutronLoadBalancerPoolMemberfromMemberMd(Member member)List<NeutronLoadBalancerPoolMember>getAllNeutronLoadBalancerPoolMembers(String poolUuid)Applications call this interface method to return all NeutronLoadBalancerPoolMember objects.protected Collection<Pool>getDataObjectList(Pools pools)NeutronLoadBalancerPoolMembergetNeutronLoadBalancerPoolMember(String poolUuid, String uuid)Applications call this interface method to return if a particular NeutronLoadBalancerPoolMember object exists.booleanneutronLoadBalancerPoolMemberExists(String poolUuid, String uuid)Applications call this interface method to determine if a particular NeutronLoadBalancerPoolMember object exists.booleanneutronLoadBalancerPoolMemberInUse(String poolUuid, String loadBalancerPoolMemberID)Applications call this interface method to see if a MAC address is in use.booleanremoveNeutronLoadBalancerPoolMember(String poolUuid, String uuid)Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the concurrent map.protected PooltoMd(NeutronLoadBalancerPool pool)booleanupdateNeutronLoadBalancerPoolMember(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:
getDataObjectListin classAbstractTranscriberInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool,Neutron>
-
toMd
protected Pool toMd(NeutronLoadBalancerPool pool)
- Specified by:
toMdin classAbstractTranscriberInterface<Pool,Pools,PoolKey,NeutronLoadBalancerPool,Neutron>
-
fromMd
protected NeutronLoadBalancerPool fromMd(Pool pool)
- Specified by:
fromMdin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to determine if a particular NeutronLoadBalancerPoolMember object exists.- Specified by:
neutronLoadBalancerPoolMemberExistsin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to return if a particular NeutronLoadBalancerPoolMember object exists.- Specified by:
getNeutronLoadBalancerPoolMemberin interfaceINeutronLoadBalancerPoolCRUD- Parameters:
poolUuid- UUID of the NeutronLoadBalancerPool objectuuid- UUID of the NeutronLoadBalancerPoolMember object- Returns:
NeutronLoadBalancerPoolMemberOpenStackNeutronLoadBalancerPoolMember 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to return all NeutronLoadBalancerPoolMember objects.- Specified by:
getAllNeutronLoadBalancerPoolMembersin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to add a NeutronLoadBalancerPoolMember object to the concurrent map.- Specified by:
addNeutronLoadBalancerPoolMemberin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the concurrent map.- Specified by:
removeNeutronLoadBalancerPoolMemberin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to edit a NeutronLoadBalancerPoolMember object.- Specified by:
updateNeutronLoadBalancerPoolMemberin 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:INeutronLoadBalancerPoolCRUDApplications call this interface method to see if a MAC address is in use.- Specified by:
neutronLoadBalancerPoolMemberInUsein 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)
-
-