mturk 2002/06/29 00:43:24
Modified: jk/java/org/apache/jk/apr AprImpl.java
Log:
Introduced new native function jkStatus that signals the
TC startup status to the server for now.
Revision Changes Path
1.22 +9 -0 jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java
Index: AprImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- AprImpl.java 11 Jun 2002 22:48:46 -0000 1.21
+++ AprImpl.java 29 Jun 2002 07:43:24 -0000 1.22
@@ -119,6 +119,8 @@
*/
public native void jkRecycle(long xEnv, long endpointP);
+ /* Send a TC status code to the server */
+ public static native void jkStatus(int code);
// -------------------- Called from C --------------------
// XXX Check security, add guard or other protection
@@ -181,6 +183,13 @@
jniMode=true;
}
+ public static void jniStatus(int code) throws IOException {
+ try {
+ jkStatus( code);
+ } catch( Throwable t) {
+ throw new IOException( t.getMessage() );
+ }
+ }
/** This method of loading the libs doesn't require setting
* LD_LIBRARY_PATH. Assuming a 'right' binary distribution,
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>