Package org.openjdk.jmc.agent.util
Class VersionUtils
java.lang.Object
org.openjdk.jmc.agent.util.VersionUtils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VersionUtils.JFRVersionprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intprivate static VersionUtils.JFRVersionstatic VersionUtils.JFRVersionReturns the current JVM's JFR version.static OptionalIntReturns the current JVM's feature (major) version, e.g.private static Method
-
Field Details
-
AVAILABLE_JFR_VERSION
-
FEATURE_VERSION
private static final int FEATURE_VERSION
-
-
Constructor Details
-
VersionUtils
private VersionUtils()
-
-
Method Details
-
determineJFRVersion
-
getAvailableJFRVersion
Returns the current JVM's JFR version. -
getFeatureVersion
Returns the current JVM's feature (major) version, e.g. 8, 11, or 15. -
determineFeatureVersion
private static int determineFeatureVersion() -
getMethod
- Throws:
Exception
-