Class RuntimeVersion
java.lang.Object
com.espertech.esper.runtime.client.util.RuntimeVersion
Runtime version.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Current runtime major version.static final int
Current runtime minor version.static final int
Current runtime patch version.static final String
Current runtime version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkVersion
(String compilerVersion) Compare major and minor versionparseVersion
(String version)
-
Field Details
-
RUNTIME_VERSION
Current runtime version.- See Also:
-
MAJOR
public static final int MAJORCurrent runtime major version. -
MINOR
public static final int MINORCurrent runtime minor version. -
PATCH
public static final int PATCHCurrent runtime patch version.
-
-
Constructor Details
-
RuntimeVersion
public RuntimeVersion()
-
-
Method Details
-
checkVersion
Compare major and minor version- Parameters:
compilerVersion
- version to compare- Throws:
RuntimeVersion.VersionException
- when a difference is found
-
parseVersion
public static RuntimeVersion.MajorMinorPatch parseVersion(String version) throws NumberFormatException - Throws:
NumberFormatException
-