Interface NativeIO
-
- All Known Implementing Classes:
NativeIOImpl
public interface NativeIONativeIO API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intclose(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)intopen(java.lang.String pathname, int flags, int mode)intposix_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)
-
-
-
Field Detail
-
O_CREAT
static final int O_CREAT
- See Also:
- Constant Field Values
-
O_RDONLY
static final int O_RDONLY
- See Also:
- Constant Field Values
-
O_WRONLY
static final int O_WRONLY
- See Also:
- Constant Field Values
-
O_TRUNC
static final int O_TRUNC
- See Also:
- Constant Field Values
-
O_DIRECT
static final int O_DIRECT
- See Also:
- Constant Field Values
-
O_DSYNC
static final int O_DSYNC
- See Also:
- Constant Field Values
-
SEEK_SET
static final int SEEK_SET
- See Also:
- Constant Field Values
-
SEEK_END
static final int SEEK_END
- See Also:
- Constant Field Values
-
FALLOC_FL_ZERO_RANGE
static final int FALLOC_FL_ZERO_RANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
open
int open(java.lang.String pathname, int flags, int mode) throws NativeIOException- Throws:
NativeIOException
-
fsync
int fsync(int fd) throws NativeIOException
- Throws:
NativeIOException
-
fallocate
int fallocate(int fd, int mode, long offset, long len) throws NativeIOExceptionfallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.- Throws:
NativeIOException
-
posix_fadvise
int posix_fadvise(int fd, long offset, long len, int flag) throws NativeIOExceptionposix_fadvise is a linux-only syscall, so callers must handle the possibility that it does not exist.- Throws:
NativeIOException
-
pwrite
int pwrite(int fd, long pointer, int count, long offset) throws NativeIOException- Throws:
NativeIOException
-
posix_memalign
long posix_memalign(int alignment, int size) throws NativeIOException- Throws:
NativeIOException
-
free
void free(long pointer) throws NativeIOException
- Throws:
NativeIOException
-
lseek
long lseek(int fd, long offset, int whence) throws NativeIOException- Throws:
NativeIOException
-
pread
long pread(int fd, long pointer, long size, long offset) throws NativeIOException- Throws:
NativeIOException
-
close
int close(int fd) throws NativeIOException
- Throws:
NativeIOException
-
-