Class Library
java.lang.Object
org.apache.tomcat.jni.Library
Manages loading of the Tomcat Native (tcnative) library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intAPR is development version flag.static intAPR major version.static intAPR minor version.static intAPR patch version.static intTCN is development version flag.static intTCN major version.static intTCN minor version.static intTCN patch version. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the APR version string.static booleaninitialize(String libraryName) Setup any APR internal data structures.static voidDestroys Tomcat Native's global APR pool.static StringReturns the TCN version string.
-
Field Details
-
TCN_MAJOR_VERSION
public static int TCN_MAJOR_VERSIONTCN major version. -
TCN_MINOR_VERSION
public static int TCN_MINOR_VERSIONTCN minor version. -
TCN_PATCH_VERSION
public static int TCN_PATCH_VERSIONTCN patch version. -
TCN_IS_DEV_VERSION
public static int TCN_IS_DEV_VERSIONTCN is development version flag. -
APR_MAJOR_VERSION
public static int APR_MAJOR_VERSIONAPR major version. -
APR_MINOR_VERSION
public static int APR_MINOR_VERSIONAPR minor version. -
APR_PATCH_VERSION
public static int APR_PATCH_VERSIONAPR patch version. -
APR_IS_DEV_VERSION
public static int APR_IS_DEV_VERSIONAPR is development version flag.
-
-
Method Details
-
terminate
public static void terminate()Destroys Tomcat Native's global APR pool. This has to be the last call to TCN library. This will destroy any APR root pools that have not been explicitly destroyed. -
versionString
Returns the TCN version string.- Returns:
- the TCN version string
-
aprVersionString
Returns the APR version string.- Returns:
- the APR version string
-
initialize
Setup any APR internal data structures. This MUST be the first function called for any APR library.- Parameters:
libraryName- the name of the library to load- Returns:
trueif the native code was initialized successfully otherwisefalse- Throws:
Exception- if a problem occurred during initialization
-