Interface PluginProvider.UpdateFacet<T>

All Known Subinterfaces:
NetworkProvider.NetworkUpdateFacet, ProvisionProvider.ComputeUpdateFacet, StorageProvider.StorageUpdateFacet
Enclosing interface:
PluginProvider

public static interface PluginProvider.UpdateFacet<T>
  • Method Details

    • validateUpdate

      default ServiceResponse validateUpdate(T target, 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.
      Parameters:
      target - the target to check for updates
    • executeUpdate

      default ServiceResponse executeUpdate(T target, UpdateDefinition update)
      // * Execute the update on the target devices. This is where the actual update logic should be implemented.
      Parameters:
      target - the target device to update
      update - the update version to apply
      Returns:
      a ServiceResponse indicating the success or failure of the update operation
    • postUpdate

      default ServiceResponse postUpdate(T target, UpdateDefinition update)
      Post update operations can be performed here. This is useful for cleanup, verification, or other
      Parameters:
      target - the target device to update
      update - the update operation details
      Returns:
      a ServiceResponse indicating the success or failure of the update operation
    • rollbackUpdate

      default ServiceResponse rollbackUpdate(T target, UpdateDefinition update)
      Rollback the update on the target devices. This is where the actual rollback logic should be implemented.
      Parameters:
      target - the target device to rollback
      update - the update operation details
      Returns:
      a ServiceResponse indicating the success or failure of the rollback operation
    • refreshUpdate

      default ServiceResponse refreshUpdate(T target, UpdateOperation updateoperation)
      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