Package com.morpheusdata.core.backup
Interface MorpheusBackupService
- All Superinterfaces:
MorpheusDataQueryService<Backup>,MorpheusDataService<Backup,,BackupIdentityProjection> MorpheusIdentityService<BackupIdentityProjection>
public interface MorpheusBackupService
extends MorpheusDataService<Backup,BackupIdentityProjection>, MorpheusIdentityService<BackupIdentityProjection>
Context methods for interacting with
Backups in Morpheus- Since:
- 0.13.4
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>executeBackup(Long backupId) Initiates the execution of a backupBackup.Returns the BackupJobContext used for performing updates or queries onBackupJobrelated assets within Morpheus.Returns the BackupRestoreContext used for performing updates or queries onBackupRestorerelated assets within Morpheus.Returns the BackupResultContext used for performing updates or queries onBackupResultrelated assets within Morpheus.io.reactivex.rxjava3.core.Single<StorageBucket>getBackupStorageBucket(AccountIdentity accountIdentity, Long backupId) Returns theStorageBucketassociated with aBackupobject.io.reactivex.rxjava3.core.Single<StorageBucket>getBackupStorageBucket(AccountIdentity accountIdentity, Long backupId, Long storageProviderId) Returns theStorageBucketassociated with aBackupobject.io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider>Returns theStorageProviderfor the default backup storage bucket.io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider>getBackupStorageProvider(Long storageBucketId) Returns theStorageProviderfor a specific storage bucket.io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider>getBackupStorageProvider(Long storageBucketId, String basePath) Returns theStorageProviderfor a specific storage bucket and base path.io.reactivex.rxjava3.core.Single<String>getBackupWorkingPath(Long backupId, Long backupResultId) Returns the working path for a backup result.Returns the MorpheusReplicationContext used for performing updates/queries onReplicationrelated assets within Morpheus.getType()Returns the MorpheusBackupTypeContext used for performing updates/queries onBackupTyperelated assets within Morpheus.io.reactivex.rxjava3.core.Observable<Backup>listByAccountIdAndBackupJobIdAndActive(Long accountId, Long backupJobId, Boolean active) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<Backup>listByBackupJobIdAndActive(Long backupJobId, Boolean active) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<Backup>listById(Collection<Long> ids) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<BackupIdentityProjection>listIdentityProjections(BackupProvider backupProvider) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<BackupIdentityProjection>listIdentityProjections(Cloud cloud) Deprecated, for removal: This API element is subject to removal in a future version.Methods 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, create, remove, remove, save, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
getType
MorpheusBackupTypeService getType()Returns the MorpheusBackupTypeContext used for performing updates/queries onBackupTyperelated assets within Morpheus.- Returns:
- An instance of the BackupTypeContext to be used for calls by various backup providers
-
getBackupJob
MorpheusBackupJobService getBackupJob()Returns the BackupJobContext used for performing updates or queries onBackupJobrelated assets within Morpheus. Typically this would be called by aBackupProvider- Returns:
- An instance of the Backup Job Context to be used for calls by various backup providers
-
getBackupResult
MorpheusBackupResultService getBackupResult()Returns the BackupResultContext used for performing updates or queries onBackupResultrelated assets within Morpheus. Typically this would be called by aBackupProvider.- Returns:
- An instance of the Backup Result Context to be used for calls by various backup providers
-
getBackupRestore
MorpheusBackupRestoreService getBackupRestore()Returns the BackupRestoreContext used for performing updates or queries onBackupRestorerelated assets within Morpheus. Typically this would be called by aBackupProvider.- Returns:
- An instance of the Backup Restore Context to be used for calls by various backup providers
-
getReplication
MorpheusReplicationService getReplication()Returns the MorpheusReplicationContext used for performing updates/queries onReplicationrelated assets within Morpheus.- Returns:
- An instance of the MorpheusReplicationContext to be used for calls by various backup providers
-
listIdentityProjections
@Deprecated(since="0.15.3", forRemoval=true) io.reactivex.rxjava3.core.Observable<BackupIdentityProjection> listIdentityProjections(BackupProvider backupProvider) Deprecated, for removal: This API element is subject to removal in a future version.Lists all backup projection objects for a specified backup provider id. The projection is a subset of the properties on a fullBackupobject for sync matching.- Parameters:
backupProvider- theAbstractBackupProvideridentifier associated to the backups to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
@Deprecated(since="0.15.3", forRemoval=true) io.reactivex.rxjava3.core.Observable<BackupIdentityProjection> listIdentityProjections(Cloud cloud) Deprecated, for removal: This API element is subject to removal in a future version.Lists all backup projection objects for a specified cloud. The projection is a subset of the properties on a fullBackupobject for sync matching.- Parameters:
cloud- theCloudidentifier associated to the domains to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listById
@Deprecated(since="0.15.3", forRemoval=true) io.reactivex.rxjava3.core.Observable<Backup> listById(Collection<Long> ids) Deprecated, for removal: This API element is subject to removal in a future version.Lists allBackupobjects by a list of Identifiers. This is commonly used in sync / caching logic. -
listByBackupJobIdAndActive
@Deprecated(since="0.15.3", forRemoval=true) io.reactivex.rxjava3.core.Observable<Backup> listByBackupJobIdAndActive(Long backupJobId, Boolean active) Deprecated, for removal: This API element is subject to removal in a future version. -
listByAccountIdAndBackupJobIdAndActive
@Deprecated(since="0.15.3", forRemoval=true) io.reactivex.rxjava3.core.Observable<Backup> listByAccountIdAndBackupJobIdAndActive(Long accountId, Long backupJobId, Boolean active) Deprecated, for removal: This API element is subject to removal in a future version. -
executeBackup
Initiates the execution of a backupBackup. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Parameters:
backupId- the ID of theBackupto begin execution.- Returns:
- the Single Observable containing the success or failure of the backup execution call
-
getBackupStorageBucket
io.reactivex.rxjava3.core.Single<StorageBucket> getBackupStorageBucket(AccountIdentity accountIdentity, Long backupId) Returns theStorageBucketassociated with aBackupobject. If the backup does not have an associated storage bucket, the default backup storage bucket will be returned.- Parameters:
accountIdentity- theAccountIdentityobject to use for the storage bucket lookupbackupId- the ID of theBackupobject to use for the storage bucket lookup- Returns:
- the Single Observable containing the
StorageBucketobject for subscription
-
getBackupStorageBucket
io.reactivex.rxjava3.core.Single<StorageBucket> getBackupStorageBucket(AccountIdentity accountIdentity, Long backupId, Long storageProviderId) Returns theStorageBucketassociated with aBackupobject. If the backup does not have an associated storage bucket, the default backup storage bucket will be returned.- Parameters:
accountIdentity- theAccountIdentityobject to use for the storage bucket lookupbackupId- the ID of theBackupobject to use for the storage bucket lookupstorageProviderId- the ID of theStorageProviderobject to use for the storage bucket lookup- Returns:
- the Single Observable containing the
StorageBucketobject for subscription
-
getBackupStorageProvider
io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider> getBackupStorageProvider()Returns theStorageProviderfor the default backup storage bucket.- Returns:
- the Single Observable containing the
StorageProviderobject for subscription
-
getBackupStorageProvider
io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider> getBackupStorageProvider(Long storageBucketId) Returns theStorageProviderfor a specific storage bucket.- Parameters:
storageBucketId- the ID of theStorageBucketobject to use for the storage provider lookup- Returns:
- the Single Observable containing the
StorageProviderobject for subscription
-
getBackupStorageProvider
io.reactivex.rxjava3.core.Single<com.bertramlabs.plugins.karman.StorageProvider> getBackupStorageProvider(Long storageBucketId, String basePath) Returns theStorageProviderfor a specific storage bucket and base path.- Parameters:
storageBucketId- the ID of theStorageBucketobject to use for the storage provider lookupbasePath- the base path to use for the storage provider- Returns:
- the Single Observable containing the
StorageProviderobject for subscription
-
getBackupWorkingPath
Returns the working path for a backup result. This is typically used to store temporary files or directories for the backup process.- Parameters:
backupId- the id of theBackupobjectbackupResultId- the id of theBackupResultobject- Returns:
- the Single Observable containing the working path for the backup result
-