Interface MorpheusLoadBalancerNodeService
- All Superinterfaces:
MorpheusDataQueryService<NetworkLoadBalancerNode>,MorpheusDataService<NetworkLoadBalancerNode,,LoadBalancerNodeIdentityProjection> MorpheusIdentityService<LoadBalancerNodeIdentityProjection>
public interface MorpheusLoadBalancerNodeService
extends MorpheusDataService<NetworkLoadBalancerNode,LoadBalancerNodeIdentityProjection>, MorpheusIdentityService<LoadBalancerNodeIdentityProjection>
Interface for interacting with the morpheus backend database in regards to load balancer node domain objects
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>create(List<NetworkLoadBalancerNode> nodes) Deprecated.io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerNode>>findByLoadBalancerAndExternalId(NetworkLoadBalancer loadBalancer, String externalId) Retrieves a single load balancer node from the database given a load balancer and external idio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerNode>listById(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<LoadBalancerNodeIdentityProjection>listSyncProjections(Long loadBalancerId) Get a list ofNetworkLoadBalancerNodeprojections based on NetworkLoadBalancer idio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerNode>queryNodes(Map args) Use this method to query the database for load balancer nodesio.reactivex.rxjava3.core.Single<Boolean>Deprecated.io.reactivex.rxjava3.core.Single<Boolean>save(List<NetworkLoadBalancerNode> nodes) 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<LoadBalancerNodeIdentityProjection> listSyncProjections(Long loadBalancerId) Get a list ofNetworkLoadBalancerNodeprojections 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<NetworkLoadBalancerNode> listById(Collection<Long> ids) Deprecated.Get a list of NetworkLoadBalancerNode objects from a list of projection ids- Parameters:
ids- ids of load balancer nodes- Returns:
- Observable stream of NetworkLoadBalancerNode objects
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<NetworkLoadBalancerNode> nodes) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)insteadSave updates to existing node- Specified by:
savein interfaceMorpheusDataService<NetworkLoadBalancerNode,LoadBalancerNodeIdentityProjection> - Parameters:
nodes- updatedNetworkLoadBalancerNodeobjects- Returns:
- success
- See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<NetworkLoadBalancerNode> nodes) Deprecated.Create new node in Morpheus- Specified by:
createin interfaceMorpheusDataService<NetworkLoadBalancerNode,LoadBalancerNodeIdentityProjection> - Parameters:
nodes- newNetworkLoadBalancerNodeobjects to persist- Returns:
- success
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<LoadBalancerNodeIdentityProjection> nodes) Deprecated.Remove persisted node from Morpheus- Specified by:
removein interfaceMorpheusDataService<NetworkLoadBalancerNode,LoadBalancerNodeIdentityProjection> - Parameters:
nodes-LoadBalancerNodeIdentityProjectionobjects to delete from database- Returns:
- success
- See Also:
-
findByLoadBalancerAndExternalId
io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerNode>> findByLoadBalancerAndExternalId(NetworkLoadBalancer loadBalancer, String externalId) Retrieves a single load balancer node from the database given a load balancer and external id- Parameters:
loadBalancer-NetworkLoadBalancerexternalId- the id of aNetworkLoadBalancerNodegenerated by the integration- Returns:
- 1 or 0
NetworkLoadBalancerNode
-
queryNodes
Use this method to query the database for load balancer nodes- Parameters:
args- a map of properties used to query the scripts- Returns:
- Observable stream of
NetworkLoadBalancerNode
-
MorpheusDataService.bulkCreate(java.util.List<M>)instead