1 17 18 package org.apache.tomcat.jni; 19 20 import java.nio.ByteBuffer ; 21 22 27 28 public class Pool { 29 30 38 public static native long create(long parent); 39 40 47 public static native void clear(long pool); 48 49 55 public static native void destroy(long pool); 56 57 62 public static native long parentGet(long pool); 63 64 71 public static native boolean isAncestor(long a, long b); 72 73 74 85 86 93 public static native long cleanupRegister(long pool, Object o); 94 95 100 public static native void cleanupKill(long pool, long data); 101 102 115 public static native void noteSubprocess(long a, long proc, int how); 116 117 123 public static native ByteBuffer alloc(long p, int size); 124 125 131 public static native ByteBuffer calloc(long p, int size); 132 133 136 137 149 public static native int dataSet(long pool, String key, Object data); 150 151 156 public static native Object dataGet(long pool, String key); 157 158 162 public static native void cleanupForExec(); 163 164 } 165 | Popular Tags |