Interface MorpheusLoadBalancerPoolService
- All Superinterfaces:
MorpheusDataQueryService<NetworkLoadBalancerPool>
,MorpheusDataService<NetworkLoadBalancerPool,
,LoadBalancerPoolIdentityProjection> MorpheusIdentityService<LoadBalancerPoolIdentityProjection>
public interface MorpheusLoadBalancerPoolService
extends MorpheusDataService<NetworkLoadBalancerPool,LoadBalancerPoolIdentityProjection>, MorpheusIdentityService<LoadBalancerPoolIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<NetworkLoadBalancerPool> pools) Deprecated.io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPool>>
findByLoadBalancerAndExternalId
(NetworkLoadBalancer loadBalancer, String externalId) Deprecated.io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerMember>
This method is used to grab the persisted pool members for a given load balancer poolio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPool>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<LoadBalancerPoolIdentityProjection>
listSyncProjections
(Long loadBalancerId) Get a list ofNetworkLoadBalancerPool
projections based on NetworkLoadBalancer idio.reactivex.rxjava3.core.Single<Boolean>
Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<NetworkLoadBalancerPool> pools) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listSyncProjections
io.reactivex.rxjava3.core.Observable<LoadBalancerPoolIdentityProjection> listSyncProjections(Long loadBalancerId) Get a list ofNetworkLoadBalancerPool
projections based on NetworkLoadBalancer id- Parameters:
loadBalancerId
- the id of the load balancer- Returns:
- Observable stream of sync projection
-
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPool> listById(Collection<Long> ids) Deprecated.Get a list ofNetworkLoadBalancerPool
objects from a list of projection ids- Parameters:
ids
- pool ids- Returns:
- Observable stream of pools
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<NetworkLoadBalancerPool> pools) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSave updates to existing pool- Specified by:
save
in interfaceMorpheusDataService<NetworkLoadBalancerPool,
LoadBalancerPoolIdentityProjection> - Parameters:
pools
- updated pools- Returns:
- success
- See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<NetworkLoadBalancerPool> pools) Deprecated.Create new load balancer pool in Morpheus- Specified by:
create
in interfaceMorpheusDataService<NetworkLoadBalancerPool,
LoadBalancerPoolIdentityProjection> - Parameters:
pools
- newNetworkLoadBalancerPool
to persist- Returns:
- success
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<LoadBalancerPoolIdentityProjection> pools) Deprecated.Remove persisted load balancer pools from Morpheus- Specified by:
remove
in interfaceMorpheusDataService<NetworkLoadBalancerPool,
LoadBalancerPoolIdentityProjection> - Parameters:
pools
- Images to delete- Returns:
- success
- See Also:
-
findByLoadBalancerAndExternalId
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPool>> findByLoadBalancerAndExternalId(NetworkLoadBalancer loadBalancer, String externalId) Deprecated.Retrieves a single load balancer pool from the database given a load balancer and external id- Parameters:
loadBalancer
-NetworkLoadBalancer
externalId
- the id of theNetworkLoadBalancerPool
generated by the integration- Returns:
- 1 or 0
NetworkLoadBalancerPool
-
getPoolMembers
io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerMember> getPoolMembers(NetworkLoadBalancerPool pool) This method is used to grab the persisted pool members for a given load balancer pool- Parameters:
pool
-NetworkLoadBalancerPool
- Returns:
- an observable stream of
NetworkLoadBalancerMember
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead