Class LbPoolServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.LbPoolServiceImpl
-
- All Implemented Interfaces:
LbPoolService,RestService
public class LbPoolServiceImpl extends BaseNetworkingServices implements LbPoolService
OpenStack (Neutron) Lbaas pool based Operations- Author:
- liujunpeng
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description LbPoolServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthMonitorassociateHealthMonitor(String lbPoolId, String healthMonitorId)Associates a health monitor with a specified pool.HealthMonitorassociateHealthMonitor(String lbPoolId, HealthMonitorAssociate associate)Associates a health monitor with a specified pool.LbPoolcreate(LbPool lbPool)Create a lb PoolActionResponsedelete(String lbPoolId)Delete the specified lb Pool by IDActionResponsedisAssociateHealthMonitor(String lbPoolId, String healthMonitorId)Disassociates a specified health monitor from a pool.LbPoolget(String lbPoolId)Get the specified lb pool by IDList<? extends LbPool>list()List all lb pools that the current tenant has access toList<? extends LbPool>list(Map<String,String> filteringParams)Returns list of lb pools filtered by parameters.LbPoolStatsstats(String lbPoolId)Get the LbPool Stats by IDLbPoolupdate(String lbPoolId, LbPoolUpdate lbPool)Update a lb pool-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends LbPool> list()
List all lb pools that the current tenant has access to- Specified by:
listin interfaceLbPoolService- Returns:
- list of all lb pools
-
list
public List<? extends LbPool> list(Map<String,String> filteringParams)
Returns list of lb pools filtered by parameters.- Specified by:
listin interfaceLbPoolService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- List
-
get
public LbPool get(String lbPoolId)
Get the specified lb pool by ID- Specified by:
getin interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifier- Returns:
- the lbPool or null if not found
-
delete
public ActionResponse delete(String lbPoolId)
Delete the specified lb Pool by ID- Specified by:
deletein interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifier- Returns:
- the action response
-
create
public LbPool create(LbPool lbPool)
Create a lb Pool- Specified by:
createin interfaceLbPoolService- Parameters:
lbPool- LbPool- Returns:
- Member
-
update
public LbPool update(String lbPoolId, LbPoolUpdate lbPool)
Update a lb pool- Specified by:
updatein interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifierlbPool- LbPoolUpdate- Returns:
- LbPool
-
stats
public LbPoolStats stats(String lbPoolId)
Get the LbPool Stats by ID- Specified by:
statsin interfaceLbPoolService- Parameters:
lbPoolId- , the lb pool identifier
-
associateHealthMonitor
public HealthMonitor associateHealthMonitor(String lbPoolId, String healthMonitorId)
Associates a health monitor with a specified pool.- Specified by:
associateHealthMonitorin interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifier- Returns:
- HealthMonitor
-
associateHealthMonitor
public HealthMonitor associateHealthMonitor(String lbPoolId, HealthMonitorAssociate associate)
Associates a health monitor with a specified pool.- Specified by:
associateHealthMonitorin interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifierassociate- HealthMonitorAssociate- Returns:
- HealthMonitor
-
disAssociateHealthMonitor
public ActionResponse disAssociateHealthMonitor(String lbPoolId, String healthMonitorId)
Disassociates a specified health monitor from a pool.- Specified by:
disAssociateHealthMonitorin interfaceLbPoolService- Parameters:
lbPoolId- the lb pool identifierhealthMonitorId- the healthMonitor identifier- Returns:
- ActionResponse
-
-