voldemort.store.readonly.io.jna
Class mman

java.lang.Object
  extended by voldemort.store.readonly.io.jna.mman

public class mman
extends java.lang.Object


Field Summary
static int MAP_ALIGN
           
static int MAP_LOCKED
           
static int MAP_PRIVATE
           
static int MAP_SHARED
           
static int PROT_EXEC
           
static int PROT_NONE
           
static int PROT_READ
           
static int PROT_WRITE
           
 
Constructor Summary
mman()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void mlock(com.sun.jna.Pointer addr, long len)
           
static com.sun.jna.Pointer mmap(long len, int prot, int flags, int fildes, long off)
           
static void munlock(com.sun.jna.Pointer addr, long len)
          Unlock the given region, throw an IOException if we fail.
static int munmap(com.sun.jna.Pointer addr, long len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROT_READ

public static final int PROT_READ
See Also:
Constant Field Values

PROT_WRITE

public static final int PROT_WRITE
See Also:
Constant Field Values

PROT_EXEC

public static final int PROT_EXEC
See Also:
Constant Field Values

PROT_NONE

public static final int PROT_NONE
See Also:
Constant Field Values

MAP_SHARED

public static final int MAP_SHARED
See Also:
Constant Field Values

MAP_PRIVATE

public static final int MAP_PRIVATE
See Also:
Constant Field Values

MAP_ALIGN

public static final int MAP_ALIGN
See Also:
Constant Field Values

MAP_LOCKED

public static final int MAP_LOCKED
See Also:
Constant Field Values
Constructor Detail

mman

public mman()
Method Detail

mmap

public static com.sun.jna.Pointer mmap(long len,
                                       int prot,
                                       int flags,
                                       int fildes,
                                       long off)
                                throws java.io.IOException
Throws:
java.io.IOException

munmap

public static int munmap(com.sun.jna.Pointer addr,
                         long len)
                  throws java.io.IOException
Throws:
java.io.IOException

mlock

public static void mlock(com.sun.jna.Pointer addr,
                         long len)
                  throws java.io.IOException
Throws:
java.io.IOException

munlock

public static void munlock(com.sun.jna.Pointer addr,
                           long len)
                    throws java.io.IOException
Unlock the given region, throw an IOException if we fail.

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu