Interface NativeIO
-
- All Known Implementing Classes:
NativeIOImpl
public interface NativeIO
NativeIO API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
close(int fd)
int
fallocate(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.void
free(long pointer)
int
fsync(int fd)
long
lseek(int fd, long offset, int whence)
int
open(java.lang.String pathname, int flags, int mode)
int
posix_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.long
posix_memalign(int alignment, int size)
long
pread(int fd, long pointer, long size, long offset)
int
pwrite(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 NativeIOException
fallocate 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 NativeIOException
posix_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
-
-