Interface MorpheusSynchronousBackupService
- All Superinterfaces:
MorpheusSynchronousDataService<Backup,
,BackupIdentityProjection> MorpheusSynchronousIdentityService<BackupIdentityProjection>
public interface MorpheusSynchronousBackupService
extends MorpheusSynchronousDataService<Backup,BackupIdentityProjection>, MorpheusSynchronousIdentityService<BackupIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the BackupJobContext used for performing updates or queries onBackupJob
related assets within Morpheus.Returns the BackupRestoreContext used for performing updates or queries onBackupRestore
related assets within Morpheus.Returns the BackupResultContext used for performing updates or queries onBackupResult
related assets within Morpheus.getBackupStorageBucket
(AccountIdentity accountIdentity, Long backupId) Returns theStorageBucket
associated with aBackup
object.getBackupStorageBucket
(AccountIdentity accountIdentity, Long backupId, Long storageProviderId) Returns theStorageBucket
associated with aBackup
object.com.bertramlabs.plugins.karman.StorageProvider
Returns theStorageProvider
for the default backup storage bucket.com.bertramlabs.plugins.karman.StorageProvider
getBackupStorageProvider
(Long storageBucketId) Returns theStorageProvider
for a specific storage bucket.com.bertramlabs.plugins.karman.StorageProvider
getBackupStorageProvider
(Long storageBucketId, String basePath) Returns theStorageProvider
for a specific storage bucket and base path.Returns the MorpheusReplicationContext used for performing updates/queries onReplication
related assets within Morpheus.getType()
Returns the MorpheusBackupTypeContext used for performing updates/queries onBackupType
related assets within Morpheus.Methods inherited from interface com.morpheusdata.core.MorpheusSynchronousDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, getDataService, list, listById, listOptions, remove, remove, save, save, search
Methods inherited from interface com.morpheusdata.core.MorpheusSynchronousIdentityService
getDataIdentityService, listIdentityProjections
-
Method Details
-
getType
MorpheusSynchronousBackupTypeService getType()Returns the MorpheusBackupTypeContext used for performing updates/queries onBackupType
related assets within Morpheus.- Returns:
- An instance of the BackupTypeContext to be used for calls by various backup providers
-
getBackupJob
MorpheusSynchronousBackupJobService getBackupJob()Returns the BackupJobContext used for performing updates or queries onBackupJob
related 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
MorpheusSynchronousBackupResultService getBackupResult()Returns the BackupResultContext used for performing updates or queries onBackupResult
related 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
MorpheusSynchronousBackupRestoreService getBackupRestore()Returns the BackupRestoreContext used for performing updates or queries onBackupRestore
related 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
MorpheusSynchronousReplicationService getReplication()Returns the MorpheusReplicationContext used for performing updates/queries onReplication
related assets within Morpheus.- Returns:
- An instance of the MorpheusReplicationContext to be used for calls by various backup providers
-
getBackupStorageBucket
Returns theStorageBucket
associated with aBackup
object. If the backup does not have an associated storage bucket, the default backup storage bucket will be returned.- Parameters:
accountIdentity
- theAccountIdentity
object to use for the storage bucket lookupbackupId
- the ID of theBackup
object to use for the storage bucket lookup- Returns:
- the Single Observable containing the
StorageBucket
object for subscription
-
getBackupStorageBucket
StorageBucket getBackupStorageBucket(AccountIdentity accountIdentity, Long backupId, Long storageProviderId) Returns theStorageBucket
associated with aBackup
object. If the backup does not have an associated storage bucket, the default backup storage bucket will be returned.- Parameters:
accountIdentity
- theAccountIdentity
object to use for the storage bucket lookupbackupId
- the ID of theBackup
object to use for the storage bucket lookupstorageProviderId
- the ID of theStorageProvider
object to use for the storage bucket lookup- Returns:
- the Single Observable containing the
StorageBucket
object for subscription
-
getBackupStorageProvider
com.bertramlabs.plugins.karman.StorageProvider getBackupStorageProvider()Returns theStorageProvider
for the default backup storage bucket.- Returns:
- the Single Observable containing the
StorageProvider
object for subscription
-
getBackupStorageProvider
Returns theStorageProvider
for a specific storage bucket.- Parameters:
storageBucketId
- the ID of theStorageBucket
object to use for the storage provider lookup- Returns:
- the Single Observable containing the
StorageProvider
object for subscription
-
getBackupStorageProvider
com.bertramlabs.plugins.karman.StorageProvider getBackupStorageProvider(Long storageBucketId, String basePath) Returns theStorageProvider
for a specific storage bucket and base path.- Parameters:
storageBucketId
- the ID of theStorageBucket
object to use for the storage provider lookupbasePath
- the base path to use for the storage provider- Returns:
- the Single Observable containing the
StorageProvider
object for subscription
-