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 ofNetworkLoadBalancerNode
projections 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, 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<LoadBalancerNodeIdentityProjection> listSyncProjections(Long loadBalancerId) Get a list ofNetworkLoadBalancerNode
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<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:
save
in interfaceMorpheusDataService<NetworkLoadBalancerNode,
LoadBalancerNodeIdentityProjection> - Parameters:
nodes
- updatedNetworkLoadBalancerNode
objects- 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:
create
in interfaceMorpheusDataService<NetworkLoadBalancerNode,
LoadBalancerNodeIdentityProjection> - Parameters:
nodes
- newNetworkLoadBalancerNode
objects 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:
remove
in interfaceMorpheusDataService<NetworkLoadBalancerNode,
LoadBalancerNodeIdentityProjection> - Parameters:
nodes
-LoadBalancerNodeIdentityProjection
objects 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
-NetworkLoadBalancer
externalId
- the id of aNetworkLoadBalancerNode
generated 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