Class NativeUtils
- java.lang.Object
-
- org.apache.bookkeeper.common.util.nativeio.NativeUtils
-
final class NativeUtils extends java.lang.ObjectUtility class to load jni library from inside a JAR.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckArgument(boolean expression, @NonNull java.lang.Object errorMessage)(package private) static voidloadLibraryFromJar(java.lang.String path)loads given library from the this jar.
-
-
-
Method Detail
-
loadLibraryFromJar
static void loadLibraryFromJar(java.lang.String path) throws java.lang.Exceptionloads given library from the this jar. ie: this jar contains: /lib/pulsar-checksum.jnilib- Parameters:
path- : absolute path of the library in the jar
if this jar contains: /lib/pulsar-checksum.jnilib then provide the same absolute path as input- Throws:
java.lang.Exception
-
checkArgument
public static void checkArgument(boolean expression, @NonNull @NonNull java.lang.Object errorMessage)
-
-