Class BackupService

java.lang.Object
de.bytestore.hostinger.process.service.BackupService

@Service @Component public class BackupService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    config(Backup backupIO)
    Retrieves the backup configuration by delegating to the appropriate extension point associated with the specified Backup instance.
    void
    create(Backup backupIO)
    Initiates the creation of a backup by delegating the operation to the corresponding extension point associated with the specified Backup instance.
    Retrieves the extension point for a given backup instance by iterating through available backup extension points
    void
    restore(Backup backupIO)
    Restores a backup by delegating the operation to the appropriate extension point associated with the given backup instance.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BackupService

      public BackupService()
  • Method Details

    • config

      public BackupExtensionConfig config(Backup backupIO)
      Retrieves the backup configuration by delegating to the appropriate extension point associated with the specified Backup instance.
      Parameters:
      backupIO - the Backup entity for which the configuration is retrieved
      Returns:
      the BackupExtensionConfig containing the backup configuration details
    • getExtensionPoint

      public BackupExtensionPoint getExtensionPoint(Backup backupIO)
      Retrieves the extension point for a given backup instance by iterating through available backup extension points
    • create

      public void create(Backup backupIO)
      Initiates the creation of a backup by delegating the operation to the corresponding extension point associated with the specified Backup instance.
      Parameters:
      backupIO - the Backup entity that needs to be created
    • restore

      public void restore(Backup backupIO)
      Restores a backup by delegating the operation to the appropriate extension point associated with the given backup instance.
      Parameters:
      backupIO - the Backup entity that needs to be restored