Package com.morpheusdata.core.providers
Interface StorageProvider.StorageUpdateFacet
- All Superinterfaces:
PluginProvider.UpdateFacet<StorageServer>
- Enclosing interface:
- StorageProvider
public static interface StorageProvider.StorageUpdateFacet
extends PluginProvider.UpdateFacet<StorageServer>
This is a WIP interface for future functionality to allow for remote update operations of Storage Servers such as Storage Arrays
-
Method Summary
Modifier and TypeMethodDescriptionexecuteUpdate(StorageServer storageServer, UpdateDefinition update) Execute the update on the target devices.postUpdate(StorageServer storageServer, UpdateDefinition update) Post update operations can be performed here.refreshUpdate(StorageServer storageServer, UpdateOperation updateOperation) Refresh the update status on the target devices.rollbackUpdate(StorageServer storageServer, UpdateDefinition update) Rollback the update on the target devices.validateUpdate(StorageServer storageServer, UpdateDefinition update) Perform a validation of the update against the target devices.
-
Method Details
-
validateUpdate
ServiceResponse<UpdateOperation> validateUpdate(StorageServer storageServer, UpdateDefinition update) Perform a validation of the update against the target devices. This is useful for checking prerequisites, compatibility, or other checks to ensure the update can be applied successfully.- Specified by:
validateUpdatein interfacePluginProvider.UpdateFacet<StorageServer>- Parameters:
storageServer- the target device to be updatedupdate- the update definition containing the details of the update to be applied- Returns:
- a ServiceResponse with any errors if validation failed or a success response if validation passed
-
executeUpdate
ServiceResponse<UpdateOperation> executeUpdate(StorageServer storageServer, UpdateDefinition update) Execute the update on the target devices. This is where the actual update logic should be implemented.- Specified by:
executeUpdatein interfacePluginProvider.UpdateFacet<StorageServer>- Parameters:
storageServer- the target device to be updatedupdate- the update definition containing the details of the update to be applied- Returns:
- a ServiceResponse indicating the success or failure of the update operation
-
refreshUpdate
ServiceResponse<UpdateOperation> refreshUpdate(StorageServer storageServer, UpdateOperation updateOperation) Refresh the update status on the target devices. This is useful for checking the status of the update- Specified by:
refreshUpdatein interfacePluginProvider.UpdateFacet<StorageServer>- Parameters:
storageServer-- Returns:
-
postUpdate
Post update operations can be performed here. This is useful for cleanup, verification, or other- Specified by:
postUpdatein interfacePluginProvider.UpdateFacet<StorageServer>- Parameters:
storageServer- the target device to be updatedupdate- the update operation details- Returns:
- a ServiceResponse indicating the success or failure of the post update operation
-
rollbackUpdate
ServiceResponse<UpdateOperation> rollbackUpdate(StorageServer storageServer, UpdateDefinition update) Rollback the update on the target devices. This is where the actual rollback logic should be implemented.- Specified by:
rollbackUpdatein interfacePluginProvider.UpdateFacet<StorageServer>- Parameters:
storageServer- the target device to be updatedupdate- the update definition containing the details of the update to be rolled back- Returns:
- a ServiceResponse indicating the success or failure of the rollback operation
-