Package com.morpheusdata.core.providers
Interface PluginProvider.UpdateFacet<T>
- All Known Subinterfaces:
NetworkProvider.NetworkUpdateFacet,ProvisionProvider.ComputeUpdateFacet,StorageProvider.StorageUpdateFacet
- Enclosing interface:
- PluginProvider
public static interface PluginProvider.UpdateFacet<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceResponseexecuteUpdate(T target, UpdateDefinition update) // * Execute the update on the target devices.default ServiceResponsepostUpdate(T target, UpdateDefinition update) Post update operations can be performed here.default ServiceResponserefreshUpdate(T target, UpdateOperation updateoperation) Refresh the update status on the target devices.default ServiceResponserollbackUpdate(T target, UpdateDefinition update) Rollback the update on the target devices.default ServiceResponsevalidateUpdate(T target, UpdateDefinition update) Perform a validation of the update against the target devices.
-
Method Details
-
validateUpdate
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.- Parameters:
target- the target to check for updates
-
executeUpdate
// * Execute the update on the target devices. This is where the actual update logic should be implemented.- Parameters:
target- the target device to updateupdate- the update version to apply- Returns:
- a ServiceResponse indicating the success or failure of the update operation
-
postUpdate
Post update operations can be performed here. This is useful for cleanup, verification, or other- Parameters:
target- the target device to updateupdate- the update operation details- Returns:
- a ServiceResponse indicating the success or failure of the update operation
-
rollbackUpdate
Rollback the update on the target devices. This is where the actual rollback logic should be implemented.- Parameters:
target- the target device to rollbackupdate- the update operation details- Returns:
- a ServiceResponse indicating the success or failure of the rollback operation
-
refreshUpdate
Refresh the update status on the target devices. This is useful for checking the status of the update operation and updating the Morpheus database accordingly.- Parameters:
target- the target device to refresh
-