public final class BuildVersion extends Object
Modifier and Type | Method and Description |
---|---|
static com.forgerock.opendj.util.Version |
binaryVersion()
Returns the build version as specified by the dynamic constants.
|
static void |
checkVersionMismatch()
Checks if the binary version is the same than the configuration version and data version of the instance.
|
static com.forgerock.opendj.util.Version |
configVersion()
Gets the configuration version of the instance.
|
static com.forgerock.opendj.util.Version |
dataVersion()
Gets the data version from the 'data.version' file.
|
public static com.forgerock.opendj.util.Version binaryVersion()
public static com.forgerock.opendj.util.Version configVersion() throws InitializationException
InitializationException
- If an error occurred while reading or parsing the version.public static com.forgerock.opendj.util.Version dataVersion() throws InitializationException
InitializationException
- If an error occurred while reading or parsing the version.public static void checkVersionMismatch() throws InitializationException
InitializationException
- Sends an exception if the version mismatches.Copyright 2010-2022 ForgeRock AS.