Interface MorpheusLoadBalancerMonitorService
- All Superinterfaces:
MorpheusDataService<NetworkLoadBalancerMonitor,
,LoadBalancerMonitorIdentityProjection> MorpheusIdentityService<LoadBalancerMonitorIdentityProjection>
public interface MorpheusLoadBalancerMonitorService
extends MorpheusDataService<NetworkLoadBalancerMonitor,LoadBalancerMonitorIdentityProjection>, MorpheusIdentityService<LoadBalancerMonitorIdentityProjection>
Interface for interacting with the morpheus backend database in regards to load balancer health monitor domain objects
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<NetworkLoadBalancerMonitor> monitors) Deprecated.io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerMonitor>>
findByExternalId
(String externalId) Helper method to look up a network load balancer health monitor by its externalId (The id on the api side)io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerMonitor>>
Helper method to look up a network load balancer health monitor by its idio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerMonitor>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<LoadBalancerMonitorIdentityProjection>
listSyncProjections
(Long loadBalancerId) Get a list ofNetworkLoadBalancerMonitor
projections based on NetworkLoadBalancer idio.reactivex.rxjava3.core.Observable<NetworkLoadBalancerMonitor>
queryHealthMonitors
(Map args) Use this method to query the database for load balancer health monitorsio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<LoadBalancerMonitorIdentityProjection> monitors) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<NetworkLoadBalancerMonitor> monitors) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, count, create, find, get, list, listById, listOptions, remove, save, search
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listSyncProjections
io.reactivex.rxjava3.core.Observable<LoadBalancerMonitorIdentityProjection> listSyncProjections(Long loadBalancerId) Get a list ofNetworkLoadBalancerMonitor
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<NetworkLoadBalancerMonitor> listById(Collection<Long> ids) Deprecated.Get a list of NetworkLoadBalancerNode objects from a list of projection ids- Parameters:
ids
- ids of load balancer monitors- Returns:
- Observable stream of NetworkLoadBalancerMonitor objects
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<NetworkLoadBalancerMonitor> monitors) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSave updates to existing monitor- Specified by:
save
in interfaceMorpheusDataService<NetworkLoadBalancerMonitor,
LoadBalancerMonitorIdentityProjection> - Parameters:
monitors
- updatedNetworkLoadBalancerMonitor
objects- Returns:
- success
- See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<NetworkLoadBalancerMonitor> monitors) Deprecated.Create new monitor in Morpheus- Specified by:
create
in interfaceMorpheusDataService<NetworkLoadBalancerMonitor,
LoadBalancerMonitorIdentityProjection> - Parameters:
monitors
- newNetworkLoadBalancerMonitor
objects to persist- Returns:
- success
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<LoadBalancerMonitorIdentityProjection> monitors) Deprecated.Remove persisted monitor from Morpheus- Specified by:
remove
in interfaceMorpheusDataService<NetworkLoadBalancerMonitor,
LoadBalancerMonitorIdentityProjection> - Parameters:
monitors
-LoadBalancerMonitorIdentityProjection
objects to delete from database- Returns:
- success
- See Also:
-
findByExternalId
io.reactivex.rxjava3.core.Single<Optional<NetworkLoadBalancerMonitor>> findByExternalId(String externalId) Helper method to look up a network load balancer health monitor by its externalId (The id on the api side)- Parameters:
externalId
- the identifier of the load balancer monitor generated by the integration- Returns:
- 0 o 1 NetworkLoadBalancerMonitors
-
findById
Helper method to look up a network load balancer health monitor by its id- Parameters:
id
- of the monitor to retrieve- Returns:
- 0 o 1 NetworkLoadBalancerMonitors
-
queryHealthMonitors
Use this method to query the database for load balancer health monitors- Parameters:
args
- a map of properties used to query the health monitors- Returns:
- Observable stream of
NetworkLoadBalancerMonitor
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead