| java.lang.Object org.apache.tomcat.jni.Mmap
Mmap | public class Mmap (Code) | | Mmap
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static long | create(long file, long offset, long size, int flag, long pool) Create a new mmap'ed file out of an existing APR file.
Parameters: file - The file turn into an mmap. Parameters: offset - The offset into the file to start the data pointer at. Parameters: size - The size of the file Parameters: flag - bit-wise or of:APR_MMAP_READ MMap opened for readingAPR_MMAP_WRITE MMap opened for writing Parameters: pool - The pool to use when creating the mmap. | native public static int | delete(long mm) Remove a mmap'ed. | native public static long | dup(long mmap, long pool) Duplicate the specified MMAP.
Parameters: mmap - The mmap to duplicate. Parameters: pool - The pool to use for new_mmap. | native public static long | offset(long mm, long offset) Move the pointer into the mmap'ed file to the specified offset.
Parameters: mm - The mmap'ed file. Parameters: offset - The offset to move to. |
APR_MMAP_READ | final public static int APR_MMAP_READ(Code) | | MMap opened for reading
|
APR_MMAP_WRITE | final public static int APR_MMAP_WRITE(Code) | | MMap opened for writing
|
create | native public static long create(long file, long offset, long size, int flag, long pool) throws Error(Code) | | Create a new mmap'ed file out of an existing APR file.
Parameters: file - The file turn into an mmap. Parameters: offset - The offset into the file to start the data pointer at. Parameters: size - The size of the file Parameters: flag - bit-wise or of:APR_MMAP_READ MMap opened for readingAPR_MMAP_WRITE MMap opened for writing Parameters: pool - The pool to use when creating the mmap. The newly created mmap'ed file. |
delete | native public static int delete(long mm)(Code) | | Remove a mmap'ed.
Parameters: mm - The mmap'ed file. |
dup | native public static long dup(long mmap, long pool) throws Error(Code) | | Duplicate the specified MMAP.
Parameters: mmap - The mmap to duplicate. Parameters: pool - The pool to use for new_mmap. Duplicated mmap'ed file. |
offset | native public static long offset(long mm, long offset) throws Error(Code) | | Move the pointer into the mmap'ed file to the specified offset.
Parameters: mm - The mmap'ed file. Parameters: offset - The offset to move to. The pointer to the offset specified. |
|
|