Interface ProvisionProvider.ComputeUpdateFacet

All Superinterfaces:
PluginProvider.UpdateFacet<ComputeServer>
Enclosing interface:
ProvisionProvider

public static interface ProvisionProvider.ComputeUpdateFacet extends PluginProvider.UpdateFacet<ComputeServer>
  • Method Details

    • validateUpdate

      ServiceResponse<UpdateOperation> validateUpdate(UpdateDefinition update, ComputeServer... computeServer)
      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:
      computeServer - the target device to be updated
      update - 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(UpdateDefinition update, ComputeServer... computeServer)
      Execute the update on the target devices. This is where the actual update logic should be implemented.
      Parameters:
      computeServer - the target device to be updated
      update - 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(UpdateOperation updateOperation, ComputeServer... computeServer)
      Refresh the update status on the target devices. This is useful for checking the status of the update
      Parameters:
      computeServer -
      Returns:
    • postUpdate

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

      ServiceResponse<UpdateOperation> rollbackUpdate(UpdateDefinition update, ComputeServer... computeServer)
      Rollback update operations can be performed here. This is useful for cleanup, verification, or other
      Parameters:
      computeServer - the target device to update
      update - the update operation details
      Returns:
      a ServiceResponse indicating the success or failure of the update operation