Class NativeIOJni
java.lang.Object
org.apache.bookkeeper.common.util.nativeio.NativeIOJni
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intclose(int fd) (package private) static intfallocate(int fd, int mode, long offset, long len) fallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.(package private) static voidfree(long pointer) (package private) static intfsync(int fd) (package private) static longlseek(int fd, long offset, int whence) (package private) static int(package private) static intposix_fadvise(int fd, long offset, long len, int flag) (package private) static longposix_memalign(int alignment, int size) (package private) static longpread(int fd, long pointer, long size, long offset) (package private) static intpwrite(int fd, long pointer, int count, long offset)
-
Constructor Details
-
NativeIOJni
NativeIOJni()
-
-
Method Details
-
open
- Throws:
NativeIOException
-
fsync
- Throws:
NativeIOException
-
fallocate
fallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.- Throws:
NativeIOException
-
posix_fadvise
- Throws:
NativeIOException
-
pwrite
- Throws:
NativeIOException
-
posix_memalign
- Throws:
NativeIOException
-
free
- Throws:
NativeIOException
-
lseek
- Throws:
NativeIOException
-
pread
- Throws:
NativeIOException
-
close
- Throws:
NativeIOException
-