Interface MorpheusLoadBalancerPolicyService
- All Superinterfaces:
MorpheusDataQueryService<NetworkLoadBalancerPolicy>,MorpheusDataService<NetworkLoadBalancerPolicy,,LoadBalancerPolicyIdentityProjection> MorpheusIdentityService<LoadBalancerPolicyIdentityProjection>
public interface MorpheusLoadBalancerPolicyService
extends MorpheusDataService<NetworkLoadBalancerPolicy,LoadBalancerPolicyIdentityProjection>, MorpheusIdentityService<LoadBalancerPolicyIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>create(List<NetworkLoadBalancerPolicy> policies) Deprecated.io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPolicy>>findByExternalIdAndLoadBalancer(String externalId, NetworkLoadBalancer loadBalancer) Retrive a load balancer policy based on externalId and load balancer (used in sync)io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPolicy>>Deprecated.io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPolicy>listById(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<LoadBalancerPolicyIdentityProjection>listSyncProjections(Long loadBalancerId, String objCategory) Get a list ofLoadBalancerPolicyIdentityProjectionprojections based on NetworkLoadBalancer idio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPolicy>queryPolicies(Map args) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>remove(List<LoadBalancerPolicyIdentityProjection> policies) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>save(List<NetworkLoadBalancerPolicy> policies) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listSyncProjections
io.reactivex.rxjava3.core.Observable<LoadBalancerPolicyIdentityProjection> listSyncProjections(Long loadBalancerId, String objCategory) Get a list ofLoadBalancerPolicyIdentityProjectionprojections based on NetworkLoadBalancer id- Parameters:
loadBalancerId- the id of the load balancerobjCategory- a category name used in sync comparison- Returns:
- Observable stream of sync projection
-
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPolicy> listById(Collection<Long> ids) Deprecated.Get a list ofNetworkLoadBalancerPolicyobjects from a list of projection ids- Parameters:
ids- list of policy ids- Returns:
- Observable stream of policies
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<NetworkLoadBalancerPolicy> policies) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)insteadSave updates to existing policy- Specified by:
savein interfaceMorpheusDataService<NetworkLoadBalancerPolicy,LoadBalancerPolicyIdentityProjection> - Parameters:
policies- updated policy- Returns:
- success
- See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<NetworkLoadBalancerPolicy> policies) Deprecated.Create new policies in Morpheus- Specified by:
createin interfaceMorpheusDataService<NetworkLoadBalancerPolicy,LoadBalancerPolicyIdentityProjection> - Parameters:
policies- new NetworkLoadBalancerPolicy to persist- Returns:
- success
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<LoadBalancerPolicyIdentityProjection> policies) Deprecated.Remove persisted policies from Morpheus- Specified by:
removein interfaceMorpheusDataService<NetworkLoadBalancerPolicy,LoadBalancerPolicyIdentityProjection> - Parameters:
policies- Images to delete- Returns:
- success
- See Also:
-
findByExternalIdAndLoadBalancer
io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPolicy>> findByExternalIdAndLoadBalancer(String externalId, NetworkLoadBalancer loadBalancer) Retrive a load balancer policy based on externalId and load balancer (used in sync)- Parameters:
externalId- the id of the load balancer policy generated by the integrationloadBalancer-NetworkLoadBalancer- Returns:
- a
NetworkLoadBalancerPolicyif found in the morpheus db
-
findById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerPolicy>> findById(Long id) Deprecated.This method will retrieve a load balancer policy based on its morpheus primary key- Parameters:
id- - morpheus primary key for policy- Returns:
- a
NetworkLoadBalancerPolicyif found in the morpheus db
-
queryPolicies
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<NetworkLoadBalancerPolicy> queryPolicies(Map args) Deprecated.Use this method to query the database for load balancer policies- Parameters:
args- a map of properties used to query the policy- Returns:
- Observable stream of
NetworkLoadBalancerPolicy
-
MorpheusDataService.bulkCreate(java.util.List<M>)instead