Class DataVersionFile

java.lang.Object
org.opends.server.util.DataVersionFile

public final class DataVersionFile extends Object
Helper class for the data version file.
  • Field Details

    • DATA_VERSION_FILE

      public static final Path DATA_VERSION_FILE
      The relative path of the data version file.
  • Method Details

    • writeDataVersionFile

      public static void writeDataVersionFile(Path instancePath, com.forgerock.opendj.util.Version version, int upgradeDataVersionNumber, OpenOption... openOptions) throws IOException
      Writes the data version information into the data version file.
      Parameters:
      instancePath - the instance path where to write the data version file
      version - the product version to write to the file
      upgradeDataVersionNumber - the upgrade data version number to write to the file
      openOptions - the options specifying how the data version file is opened
      Throws:
      IOException - if an I/O error occurs while writing to the data version file