Interface BackupExtensionPoint

All Superinterfaces:
org.pf4j.ExtensionPoint, ExtensionProviderPoint

public interface BackupExtensionPoint extends ExtensionProviderPoint
  • Method Summary

    Modifier and Type
    Method
    Description
    config(Backup backupIO)
    Generates a backup configuration object that defines the available operations and capabilities for the provided Backup entity.
    void
    create(Backup backupIO)
    Creates a new Backup entity or performs operations to initialize it.
    void
    delete(Backup backupIO)
    Deletes a specified Backup entity.
    byte[]
    download(Backup backupIO)
    Downloads the specified backup and returns its contents as a byte array.
    void
    restore(Backup backupIO)
    Restores a specific Backup entity.
    stats(Backup backupIO)
    Retrieves statistical information about the specified Backup entity.
    status(Backup backupIO)
    Retrieves the status of the given backup operation.

    Methods inherited from interface de.bytestore.hostinger.extension.ExtensionProviderPoint

    name
  • Method Details

    • create

      void create(Backup backupIO)
      Creates a new Backup entity or performs operations to initialize it.
      Parameters:
      backupIO - the Backup entity to be created or initialized
    • delete

      void delete(Backup backupIO)
      Deletes a specified Backup entity.
      Parameters:
      backupIO - the Backup entity to be deleted
    • restore

      void restore(Backup backupIO)
      Restores a specific Backup entity. This method is responsible for initiating or performing the restoration process for the given Backup.
      Parameters:
      backupIO - the Backup entity to be restored
    • download

      byte[] download(Backup backupIO)
      Downloads the specified backup and returns its contents as a byte array.
      Parameters:
      backupIO - the Backup entity to be downloaded
      Returns:
      a byte array representing the downloaded backup data
    • stats

      BackupStats stats(Backup backupIO)
      Retrieves statistical information about the specified Backup entity.
      Parameters:
      backupIO - the Backup entity for which statistical information is to be retrieved
      Returns:
      a BackupStats object containing details such as name, size, format, and path
    • status

      BackupStats status(Backup backupIO)
      Retrieves the status of the given backup operation.
      Parameters:
      backupIO - the backup instance for which the status is to be retrieved.
      Returns:
      an instance of BackupStats containing the status details of the specified backup.
    • config

      BackupExtensionConfig config(Backup backupIO)
      Generates a backup configuration object that defines the available operations and capabilities for the provided Backup entity.
      Parameters:
      backupIO - the Backup entity for which the configuration is generated
      Returns:
      a BackupExtensionConfig object specifying the operational capabilities for the given Backup entity