Interface MorpheusLoadBalancerPartitionService
public interface MorpheusLoadBalancerPartitionService
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<ReferenceData> partitions) Create new partition in Morpheusio.reactivex.rxjava3.core.Observable<ReferenceData>
listById
(Collection<Long> ids) Get a list of ReferenceData (partitions) objects from a list of projection idsio.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listSyncProjections
(Long loadBalancerId, String objCategory) Get a list ofReferenceData
projections based on NetworkLoadBalancer idio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<ReferenceDataSyncProjection> partitions) Remove persisted partition from Morpheusio.reactivex.rxjava3.core.Single<Boolean>
save
(List<ReferenceData> partitions) Save updates to existing partition
-
Method Details
-
listSyncProjections
io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listSyncProjections(Long loadBalancerId, String objCategory) Get a list ofReferenceData
projections based on NetworkLoadBalancer id- Parameters:
loadBalancerId
- the id of the load balancerobjCategory
- an additional category to use for sync comparison- Returns:
- Observable stream of sync projection
-
listById
Get a list of ReferenceData (partitions) objects from a list of projection ids- Parameters:
ids
- partitionid- Returns:
- Observable stream of partition
-
save
Save updates to existing partition- Parameters:
partitions
- updated partition- Returns:
- success
-
create
Create new partition in Morpheus- Parameters:
partitions
- new ReferenceData (partition) to persist- Returns:
- success
-
remove
Remove persisted partition from Morpheus- Parameters:
partitions
- Images to delete- Returns:
- success
-