Package org.opends.server.util
Class DataVersionFile
java.lang.Object
org.opends.server.util.DataVersionFile
Helper class for the data version file.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeDataVersionFile
(Path instancePath, com.forgerock.opendj.util.Version version, int upgradeDataVersionNumber, OpenOption... openOptions) Writes the data version information into the data version file.
-
Field Details
-
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 fileversion
- the product version to write to the fileupgradeDataVersionNumber
- the upgrade data version number to write to the fileopenOptions
- 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
-