| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.jni.Shm
public class Shm
Shm
| Constructor Summary | |
|---|---|
Shm()
 | 
|
| Method Summary | |
|---|---|
static long | 
attach(java.lang.String filename,
       long pool)
Attach to a shared memory segment that was created by another process.  | 
static long | 
baseaddr(long m)
Retrieve the base address of the shared memory segment.  | 
static java.nio.ByteBuffer | 
buffer(long m)
Retrieve new ByteBuffer base address of the shared memory segment.  | 
static long | 
create(long reqsize,
       java.lang.String filename,
       long pool)
Create and make accessable a shared memory segment.  | 
static int | 
destroy(long m)
Destroy a shared memory segment and associated memory.  | 
static int | 
detach(long m)
Detach from a shared memory segment without destroying it.  | 
static int | 
remove(java.lang.String filename,
       long pool)
Remove shared memory segment associated with a filename.  | 
static long | 
size(long m)
Retrieve the length of a shared memory segment in bytes.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Shm()
| Method Detail | 
|---|
public static long create(long reqsize,
                          java.lang.String filename,
                          long pool)
                   throws Error
reqsize - The desired size of the segment.filename - The file to use for shared memory on platforms that
        require it.pool - the pool from which to allocate the shared memory
        structure.
Error
public static int remove(java.lang.String filename,
                         long pool)
filename - The filename associated with shared-memory segment which
        needs to be removedpool - The pool used for file operationspublic static int destroy(long m)
m - The shared memory segment structure to destroy.
public static long attach(java.lang.String filename,
                          long pool)
                   throws Error
filename - The file used to create the original segment.
        (This MUST match the original filename.)pool - the pool from which to allocate the shared memory
        structure for this process.
Errorpublic static int detach(long m)
m - The shared memory structure representing the segment
        to detach from.public static long baseaddr(long m)
m - The shared memory segment from which to retrieve
        the base address.
public static long size(long m)
m - The shared memory segment from which to retrieve
        the segment length.public static java.nio.ByteBuffer buffer(long m)
m - The shared memory segment from which to retrieve
        the base address.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||