Class NativeIOImpl
java.lang.Object
org.apache.bookkeeper.common.util.nativeio.NativeIOImpl
- All Implemented Interfaces:
NativeIO
NativeIOImpl.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintclose(int fd) 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.voidfree(long pointer) intfsync(int fd) longlseek(int fd, long offset, int whence) intintposix_fadvise(int fd, long offset, long len, int flag) posix_fadvise is a linux-only syscall, so callers must handle the possibility that it does not exist.longposix_memalign(int alignment, int size) longpread(int fd, long pointer, long size, long offset) intpwrite(int fd, long pointer, int count, long offset)
-
Constructor Details
-
NativeIOImpl
public NativeIOImpl()
-
-
Method Details
-
open
- Specified by:
openin interfaceNativeIO- Throws:
NativeIOException
-
fsync
- Specified by:
fsyncin interfaceNativeIO- Throws:
NativeIOException
-
fallocate
Description copied from interface:NativeIOfallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.- Specified by:
fallocatein interfaceNativeIO- Throws:
NativeIOException
-
posix_fadvise
Description copied from interface:NativeIOposix_fadvise is a linux-only syscall, so callers must handle the possibility that it does not exist.- Specified by:
posix_fadvisein interfaceNativeIO- Throws:
NativeIOException
-
lseek
- Specified by:
lseekin interfaceNativeIO- Throws:
NativeIOException
-
close
- Specified by:
closein interfaceNativeIO- Throws:
NativeIOException
-
pwrite
- Specified by:
pwritein interfaceNativeIO- Throws:
NativeIOException
-
posix_memalign
- Specified by:
posix_memalignin interfaceNativeIO- Throws:
NativeIOException
-
free
- Specified by:
freein interfaceNativeIO- Throws:
NativeIOException
-
pread
- Specified by:
preadin interfaceNativeIO- Throws:
NativeIOException
-