public final class NativeLibrary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NativeLibrary.OSType |
Modifier and Type | Field and Description |
---|---|
static NativeLibrary.OSType |
osType |
Modifier and Type | Method and Description |
---|---|
static int |
getfd(java.nio.channels.FileChannel channel) |
static int |
getfd(java.io.FileDescriptor descriptor)
Get system file descriptor from FileDescriptor object.
|
static long |
getProcessID() |
static boolean |
isAvailable()
Checks if the library has been successfully linked.
|
static boolean |
jnaMemoryLockable() |
static void |
tryCloseFD(int fd) |
static int |
tryFcntl(int fd,
int command,
int flags) |
static void |
tryMlockall() |
static int |
tryOpenDirectory(java.lang.String path) |
static void |
trySkipCache(int fd,
long offset,
int len,
java.lang.String path) |
static void |
trySkipCache(int fd,
long offset,
long len,
java.lang.String path) |
static void |
trySkipCache(java.lang.String path,
long offset,
long len) |
static void |
trySync(int fd) |
public static final NativeLibrary.OSType osType
public static boolean isAvailable()
true
if the library has been successfully linked, false
otherwise.public static boolean jnaMemoryLockable()
public static void tryMlockall()
public static void trySkipCache(java.lang.String path, long offset, long len)
public static void trySkipCache(int fd, long offset, long len, java.lang.String path)
public static void trySkipCache(int fd, long offset, int len, java.lang.String path)
public static int tryFcntl(int fd, int command, int flags)
public static int tryOpenDirectory(java.lang.String path)
public static void trySync(int fd)
public static void tryCloseFD(int fd)
public static int getfd(java.nio.channels.FileChannel channel)
public static int getfd(java.io.FileDescriptor descriptor)
descriptor
- - FileDescriptor objec to get fd frompublic static long getProcessID()
Copyright © 2009-2021 The Apache Software Foundation