Package com.morpheusdata.core.backup
Class MorpheusBackupProvider
java.lang.Object
com.morpheusdata.core.backup.BackupProvider
com.morpheusdata.core.backup.AbstractBackupProvider
com.morpheusdata.core.backup.MorpheusBackupProvider
- All Implemented Interfaces:
BackupProviderInterface
,PluginProvider
-
Field Summary
Fields inherited from class com.morpheusdata.core.backup.BackupProvider
scopedProviders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteBackupProvider
(BackupProvider backupProviderModel, Map opts) Delete the backup provider.Get the list of backup job option types for the backup provider.Get theBackupJobProvider
responsible for all backup job operations in this backup provider TheDefaultBackupJobProvider
can be used if the provider would like morpheus to handle all job operations.Get the list of backup option types for the backup provider.getCode()
A unique shortcode used for referencing the provided provider.getIcon()
Returns the integration logo for display when a user needs to view or add this integrationGet the list of replication group option types for the backup provider.getName()
Provides the provider name for reference when adding to the Morpheus Orchestrator NOTE: This may be useful to set as an i18n key for UI reference and localization support.Get the list of option types for the backup provider.Get the list of replication group option types for the backup provider.Get the list of replication option types for the backup provider.refresh
(BackupProvider backupProvider) The main refresh method called periodically by Morpheus to sync any necessary objects from the integration.Methods inherited from class com.morpheusdata.core.backup.AbstractBackupProvider
addScopedProvider, addScopedProvider, addToBackupJob, cloneBackupJob, configureBackupJob, configureBackupProvider, createBackupJob, deleteBackupJob, executeBackupJob, getBackupProviders, getCreatable, getDefaultJobType, getDownloadEnabled, getEnabled, getHasAddToJob, getHasBackups, getHasCloneJob, getHasCopyToStore, getHasCreateJob, getHasJobs, getHasOptionalJob, getHasReplication, getHasReplicationGroups, getHasRepositories, getHasRetentionCount, getHasSchedule, getHasServers, getHasSites, getHasStreamToStore, getMorpheus, getPlugin, getRestoreExistingEnabled, getRestoreNewEnabled, getScopedProviders, hasCancelBackup, hasStorageProvider, initializeBackupProvider, updateBackupProvider, validateBackupJob, validateBackupProvider
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.morpheusdata.core.backup.BackupProviderInterface
getViewSet
Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
isPlugin
-
Constructor Details
-
MorpheusBackupProvider
-
-
Method Details
-
getCode
Description copied from interface:PluginProvider
A unique shortcode used for referencing the provided provider. Make sure this is going to be unique as any data that is seeded or generated related to this provider will reference it by this code.- Returns:
- short code string that should be unique across all other plugin implementations.
-
getName
Description copied from interface:PluginProvider
Provides the provider name for reference when adding to the Morpheus Orchestrator NOTE: This may be useful to set as an i18n key for UI reference and localization support.- Returns:
- either an English name of a Provider or an i18n based key that can be scanned for in a properties file.
-
getBackupJobProvider
Description copied from class:AbstractBackupProvider
Get theBackupJobProvider
responsible for all backup job operations in this backup provider TheDefaultBackupJobProvider
can be used if the provider would like morpheus to handle all job operations.- Specified by:
getBackupJobProvider
in classAbstractBackupProvider
- Returns:
- the
BackupJobProvider
for this backup provider
-
getIcon
Description copied from interface:BackupProviderInterface
Returns the integration logo for display when a user needs to view or add this integration- Returns:
- Icon representation of assets stored in the src/assets of the project.
-
getOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of option types for the backup provider. The option types are used for creating and updating an instance of the backup provider. -
getBackupJobOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of backup job option types for the backup provider. The option types are used for creating and updating backup jobs. -
getBackupOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of backup option types for the backup provider. The option types are used for creating and updating backups. -
getReplicationGroupOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of replication group option types for the backup provider. The option types are used for creating and updating replication groups. -
getReplicationOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of replication option types for the backup provider. The option types are used for creating and updating replications. -
getInstanceReplicationGroupOptionTypes
Description copied from interface:BackupProviderInterface
Get the list of replication group option types for the backup provider. The option types are used for creating replications on an instance during provisioning. -
deleteBackupProvider
Description copied from interface:BackupProviderInterface
Delete the backup provider. Typically used to clean up any provider specific data that will not be cleaned up by the default remove in the core system.- Parameters:
backupProviderModel
- the backup provider being removedopts
- additional options- Returns:
- a
ServiceResponse
object. A ServiceResponse with a false success will indicate a failed delete and will halt the process.
-
refresh
Description copied from interface:BackupProviderInterface
The main refresh method called periodically by Morpheus to sync any necessary objects from the integration. This can call sub services for better organization. It is recommended thatSyncTask
is used.When an unsuccessful services response is returned an alarm will be created with the value of either the
ServiceResponse.error()
orServiceResponse.getMsg()
value. When a successful response is returned any alarms on the provider will be cleared.- Parameters:
backupProvider
- the current instance of the backupProvider being refreshed- Returns:
- the success state of the refresh
-