Package com.morpheusdata.core
Interface MorpheusStorageBucketService
- All Superinterfaces:
MorpheusDataQueryService<StorageBucket>
,MorpheusDataService<StorageBucket,
,StorageBucketIdentityProjection> MorpheusIdentityService<StorageBucketIdentityProjection>
public interface MorpheusStorageBucketService
extends MorpheusDataService<StorageBucket,StorageBucketIdentityProjection>, MorpheusIdentityService<StorageBucketIdentityProjection>
Context methods for dealing with
StorageBucket
in Morpheus-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider>
getBucketStorageProvider
(Long storageBucketId) Get a StorageProvider for a given StorageBucketio.reactivex.rxjava3.core.Observable<StorageBucketIdentityProjection>
listIdentityProjections
(StorageServer storageServer) Get a list of StorageBucket projections scoped to aStorageServer
io.reactivex.rxjava3.core.Observable<StorageBucketIdentityProjection>
listIdentityProjections
(StorageServer storageServer, String region) Get a list of StorageBucket projections scoped to aStorageServer
and region codeio.reactivex.rxjava3.core.Single<Boolean>
removeForSync
(List<StorageBucketIdentityProjection> storageBuckets) Remove persisted StorageBuckets from Morpheus Removal is skipped if the buckets are still in use by a Backup,DeploymentVersion, or VirtualImage.Methods 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, create, remove, remove, save, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<StorageBucketIdentityProjection> listIdentityProjections(StorageServer storageServer) Get a list of StorageBucket projections scoped to aStorageServer
- Parameters:
storageServer
-StorageServer
- Returns:
- Observable stream of sync projection
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<StorageBucketIdentityProjection> listIdentityProjections(StorageServer storageServer, String region) Get a list of StorageBucket projections scoped to aStorageServer
and region code- Parameters:
storageServer
-StorageServer
region
- the region code- Returns:
- Observable stream of sync projection
-
removeForSync
io.reactivex.rxjava3.core.Single<Boolean> removeForSync(List<StorageBucketIdentityProjection> storageBuckets) Remove persisted StorageBuckets from Morpheus Removal is skipped if the buckets are still in use by a Backup,DeploymentVersion, or VirtualImage.- Parameters:
storageBuckets
- List ofStorageBucketIdentityProjection
to delete- Returns:
- success
-
getBucketStorageProvider
io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider> getBucketStorageProvider(Long storageBucketId) Get a StorageProvider for a given StorageBucket- Parameters:
storageBucketId
- the id of the StorageBucket- Returns:
- Single stream of the StorageProvider for the storage bucket
-