Interface Upgrader


@NonNullByDefault public interface Upgrader
The Upgrader provides an interface for upgrading openHAB configuration files. Implementing class MUST provide a no-argument constructor.
Author:
Jimmy Tanagra - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(@Nullable Path userdataPath, @Nullable Path confPath)
    Executes the upgrade process.
     
     
  • Method Details

    • getName

      String getName()
    • getDescription

      String getDescription()
    • execute

      boolean execute(@Nullable Path userdataPath, @Nullable Path confPath)
      Executes the upgrade process.
      Parameters:
      userdataPath - the OPENHAB_USERDATA directory for the upgrade, or a custom path given by the user as --userdata argument
      confPath - the OPENHAB_CONF directory for the upgrade, or a custom path given by the user as --conf argument
      Returns:
      true if the upgrade was successful, false otherwise